/binary problem in R10B

Torbjorn Tornkvist tobbe@REDACTED
Wed Nov 3 08:56:48 CET 2004


Matthias Lang wrote:

>Vance Shipley writes:
>
> > I keep looking at this thinking I must be doing something wrong as
> > it couldn't possibly be that broken.  
>
>Remember, the shell isn't the same thing as the compiler. In older
>versions, the shell didn't handle records and there's a history of the
>shell not quite doing the same thing as the compiler with binaries.
>
>I tried your examples and they work just fine when compiled as proper
>programs.
>
>Matthias
>  
>
But this used to work:
--------------
kiwi:work> erl
Erlang (BEAM) emulator version 5.3.6.2.b1 [source] [hipe]
Eshell V5.3.6.2.b1  (abort with ^G)
1> <<G,H/binary>> = <<1,17,42:16>>.
<<1,17,0,42>>
-------------

and it is very convenient to have it working!
Looks like a bug to me...

--
Tobbe






More information about the erlang-questions mailing list