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 ?


Thanks,
Eduardo Figoli
INSwitch Solutions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20021231/5857ee46/attachment.htm>


More information about the erlang-questions mailing list