[erlang-questions] Newbie: Compile error with records

Schneider schneider@REDACTED
Tue Apr 29 16:48:53 CEST 2014


Hi list,

 

I am trying to create a bunch of records in an include file, but I just
can't get it to work.

What is wrong about this hrl file

 

-record(data_ids, {data_id, mnem, descr}).

 

#data_ids{data_id=1, mnem="ONE", descr="Number one."}.

 

The compiler gives the error:

src/data_ids.hrl:5: syntax error before: '#'

 

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140429/e0e08f94/attachment.htm>


More information about the erlang-questions mailing list