String variable eval in binaries

Inswitch Solutions erlang@REDACTED
Tue Jul 26 16:25:17 CEST 2005


Hi,

<<"hello">>.
<<104,101,108,108,111>>
<<[$h, $e, $l, $l, $o]>>.
** exited: {badarg,[{erl_eval,expr,3}]} **
Str = "hello".
<<Str>>.
** exited: {badarg,[{erl_eval,expr,3}]} **
Int =1.
<<Int>>.
<<1>>   

"hello" == [$h, $e, $l, $l, $o].
true


Any ideas?  


thanks,
Eduardo

     Prepaid Expertise - Programmable Switches 
      Powered by Ericsson Licensed Technology
      Eng. Eduardo Figoli - Development Center - IN Switch Solutions Inc.
      Headquarters - Miami-U.S.A. Tel: 1305-3578076 Fax: 1305-7686260
      Development Center - Montevideo - Uruguay Tel/Fax: 5982-7104457
      e-mail: eduardo@REDACTED

     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050726/a376aa34/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1429 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050726/a376aa34/attachment.gif>


More information about the erlang-questions mailing list