record problem
Göran Båge
goran.bage@REDACTED
Sun Jun 18 13:36:26 CEST 2006
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}]}
>
My guess is that Bryan tried this in the erlang shell which
doesnt know about records and would interpret this as an
arithmetic expression.
>
> 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
--
-- Goran
-------------------- May the Snow be with you --------
Goran Bage
Byvagen 10, SE-133 34 Saltsjobaden, Sweden
email:goran.bage@REDACTED, phone: +46 8 7172907
More information about the erlang-questions
mailing list