record problem

bryan rasmussen <>
Sun Jun 18 13:36:16 CEST 2006


Hi, yeah there was code surrounding but it was not pertinent I was
just in the shell testing some stuff out. In order to test again I
have closed down the shell and started, here is what I got:

Erlang (BEAM) emulator version 5.4.13 [threads:0]

Eshell V5.4.13  (abort with ^G)
1> -record(a,{b="b"}).
** exited: {{badmatch,"b"},[{erl_eval,expr,3}]} **

=ERROR REPORT==== 18-Jun-2006::13:31:12 ===
Error in process <0.30.0> with exit value: {{badmatch,"b"},[{erl_eval,expr,3}]}


this is basically an old erlang running on an old work laptop, I
should install newer version but I was wondering.

Cheers,
Bryan Rasmussen

On 6/18/06, Bengt Kleberg <> wrote:
> On 2006-06-18 12:07, bryan rasmussen wrote:
> > Why does this
> >
> > -record(a,{b="b",c="c"}).
> > give this
> >
> > =ERROR REPORT==== 18-Jun-2006::12:03:20 ===
> > Error in process <0.168.0> with exit value:
> > {{badmatch,"b"},[{erl_eval,expr,3}]}
>
> it does not give an error in Erlang (ASYNC_THREADS,HIPE) (BEAM) emulator
> version 5.5
>
> is there any other code surrounding the record definition?
>
>
> bengt
> --
>     EPO guidelines 1978: "If the contribution to the known art resides
>     solely in a computer program then the subject matter is not
>     patentable in whatever manner it may be presented in the claims."
>



More information about the erlang-questions mailing list