Bit syntax change

Bjorn Gustavsson bjorn@REDACTED
Mon Nov 19 14:03:25 CET 2001


This is a bug in the erl_eval module, which is used to evaluate
expressions written in the shell.

In coompiled code you would get an badmatch.

/Bjorn

Chandrashekhar Mullaparthi <Chandrashekhar.Mullaparthi@REDACTED> writes:

> I have you noticed this change in behaviour.
> 
> R7B:
> 
> 16> <<A:1, ARest/binary>> = <<1,2>>.
> ** exited: {{badmatch,<<1,2>>},[{erl_eval,expr,3}]} **                     
> 
> R8B:
> 
> 30> <<A:1, ARest/binary>> = <<1,2>>.
> <<1,2>>
> 31> A.
> 0
> 32> ARest.
> {[0,0,0,0,0,0,1],
>  7,
>  <<2>>}
> 33> 
> 
> Not reflected anywhere in the documentation.
> 
> cheers,
> Chandru

-- 
Björn Gustavsson            Ericsson Utvecklings AB
bjorn@REDACTED      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö



More information about the erlang-questions mailing list