[erlang-questions] Record fields
Fri Dec 11 12:19:30 CET 2015
On Fri, Dec 11, 2015 at 11:53 AM, Kirill Ratkin <kvratkin@REDACTED> wrote:
> I'm trying to get records fields at runtime.
> If I have record 'test' and I can do:
> record_info(fields, test).
> But if I do:
> R = test,
> record_info(fields, R).
> I get error :
> * 1: illegal record info.
> Documentation says: To each module using records, a pseudo function is
> added during compilation to obtain information about records.
> It seems it's really 'pseudo' function ....
> Is there alternative way to get record fields in runtime?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions