[erlang-questions] Strange Binary behavior
jm
jeffm@REDACTED
Wed Aug 3 06:37:32 CEST 2011
On 3/08/11 2:28 PM, Andy W. Song wrote:
> As below:
>
Seems to be expecting a type specifier. try
A = "abc",
B = list_to_binary(A),
<<B/binary, "cde">>.
The manual states that <<"abc">> is short hand for <<$a, $b, $c>> which
suggests there is an exception when the list is in place.
see http://www.erlang.org/doc/reference_manual/expressions.html#id77409
Jeff.
More information about the erlang-questions
mailing list