[erlang-questions] Strange Binary behavior
Wenqiang Song
wsong.cn@REDACTED
Wed Aug 3 07:21:13 CEST 2011
Thanks. <<"abc">> is just a syntactic sugar. I missed it.
On Wed, Aug 3, 2011 at 12:37 PM, jm <jeffm@REDACTED> wrote:
>
> 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<http://www.erlang.org/doc/reference_manual/expressions.html#id77409>
>
> Jeff.
> ______________________________**_________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110803/7c3e9b08/attachment.htm>
More information about the erlang-questions
mailing list