[erlang-questions] Bit syntax decscription in erlang reference manual?

成立涛 litaocheng@REDACTED
Fri Jun 20 03:49:19 CEST 2008


In erlang reference mannual, the Bit Syntax Expressions section, about the
binary Size, the manual said:
"In matching, this default value is only valid for the very last element.
All other bit string or binary elements in the matching must have a size
specification."
we know the default size for integer is 8, float is 64, binary is the whole
bytes.
for example:
> <<A, B, C>> = <<1, 2, 3>>.
I think in this pattern match, the variables A, B, C all use the dafault
Size.
Is it a conflict with reference manual?
thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080620/8ef1f8b7/attachment.htm>


More information about the erlang-questions mailing list