Binary guards problem

Luke Gorrie luke@REDACTED
Mon Oct 23 18:34:12 CEST 2000


Bjorn Gustavsson <bjorn@REDACTED> writes:

> You must write
> 
> 	Sz = size(A).
> 
> 	<<A:Sz/binary, B/binary>> = <<1,2,3,4,5,6>>.
> 
> to get the result you want.

Might it be more intuitive if the :Sz/binary bit was implicit if the
variable is bound to a binary? Maybe it's not important, and I haven't
looked at the code so perhaps I know not what I ask. :-)

Cheers,
Luke




More information about the erlang-questions mailing list