Why do I need to be explicit about binary

Zeke Bachholz zeke_bachholz@REDACTED
Mon Jan 12 14:59:27 CET 2004


Hi,

Can anyone explain why 11> does not work but 12> does?
A is assigned a binary value, so why do I need to be explicit about it.

10> A = <<2:8>>.
<<2>>
11> B = <<1:8, A, 3:8>>.
** exited: {badarg,[{erl_eval,expr,3}]} **
12> B = <<1:8, A/binary, 3:8>>.
<<1,2,3>>


Best Regards
Zeke

_________________________________________________________________
  Schluß mit Spam - MSN hilft Ihnen hier weiter.




More information about the erlang-questions mailing list