[erlang-questions] Strange Binary behavior

Wenqiang Song <>
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 <> 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
> 
> 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.html>


More information about the erlang-questions mailing list