Thanks. <<"abc">> is just a syntactic sugar. I missed it. <br><br><div class="gmail_quote">On Wed, Aug 3, 2011 at 12:37 PM, jm <span dir="ltr"><<a href="mailto:jeffm@ghostgun.com">jeffm@ghostgun.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
On 3/08/11 2:28 PM, Andy W. Song wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As below:<br>
<br>
</blockquote>
Seems to be expecting a type specifier. try<br>
<br>
A = "abc",<br>
B = list_to_binary(A),<br>
<<B/binary, "cde">>.<br>
<br>
<br>
The manual states that <<"abc">> is short hand for <<$a, $b, $c>> which suggests there is an exception when the list is in place.<br>
<br>
see <a href="http://www.erlang.org/doc/reference_manual/expressions.html#id77409" target="_blank">http://www.erlang.org/doc/<u></u>reference_manual/expressions.<u></u>html#id77409</a><br>
<br>
Jeff.<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote></div><br>