<div dir="ltr">In Erlang a list of integers in the range 0-255 is a string. An easy test is to show that the value 256 changes the encoding into a list of integers:<div><br></div><div><div>> term_to_binary([1, 2, 3, 4, 256]).</div>
<div><<131,108,0,0,0,5,97,1,97,2,97,3,97,4,98,0,0,1,0,106>></div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 1:38 PM, Steve Davis <span dir="ltr"><<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The following appears to encode lists of integers as strings (?!?):<br>
<br>
Eshell V5.9.3 (abort with ^G)<br>
1> term_to_binary([1,2,3,4]).<br>
<<131,107,0,4,1,2,3,4>><br>
<br>
Is there a reason for this that I'm missing?<br>
<br>
regs,<br>
/s<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>