Legal binary syntax?

Inswitch Solutions - Erlang Evaluation erlang@REDACTED
Tue Dec 31 10:29:44 CET 2002

Is this a legal binary syntax:

<<Len:16/unsigned, Id1:16/unsigned, Id2:16/unsigned, Pdu:Len/binary>> = Bytes,
where Bytes is a binary.

I received "Len unbound" error message.
If assignment is left to right why does this happen ?

Eduardo Figoli
INSwitch Solutions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list