Is it possible to obtain all the records information at macros expanding time? E.g. Something like shell's rl().

Steve Davis steven.charles.davis@REDACTED
Sat Sep 12 16:11:51 CEST 2009


...and if you happen to be using records to define tables in mnesia,
then you can get the field names back at run time by using
mnesia:table_info(Table, attributes).

/s

On Sep 11, 5:17 pm, Jayson Vantuyl <kag...@REDACTED> wrote:
> It's not identical to rl(), but there is record_info().  It's actually  
> not even a real function, as it gets expanded like a macro at compile  
> time.  About the only place you see it much is creating Mnesia tables  
> (to get the field names).


More information about the erlang-questions mailing list