space and Binary syntax

Karlsson Mikael qramika@REDACTED
Mon Oct 2 11:05:43 CEST 2000


OOPS,
sorry should have read the Ch. 6.2 A lexical note
in "Erlang Extensions Since 4.4"
>>
Note that "B=<<1>>" will be interpreted as "B =< ;<1>>", which is a syntax 
error. The correct way to write the expression is "B = <<1>>". 
<<
/Mikael     
> Date: Mon, 2 Oct 2000 10:42:50 +0200 (MET DST)
> From: Karlsson Mikael <qramika@REDACTED>
> Subject: space and Binary syntax
> To: erlang-questions@REDACTED
> MIME-Version: 1.0
> Content-MD5: +NIKEOgEhZRvOvL3CALaGw==
> 
> How should space characters be treated in the
> Binary syntax?
> I get the following results from within the Erlang
> shell:
> 
> Eshell V5.0.1  (abort with ^G)
> 1> Bin=<<8,16>>.
> ** 1: syntax error before: '<' **
> 1> Bin =<<8,16>>.
> ** 1: syntax error before: '<' **
> 1> Bin= <<8,16>>.
> <<8,16>>
> 2> Bin2 = <<8,16>>.
> <<8,16>>
> 
> /Mikael Karlsson
> 




More information about the erlang-questions mailing list