[erlang-questions] Record metadata

dmitry kolesnikov dmkolesnikov@REDACTED
Tue Mar 27 08:58:56 CEST 2012


Hello,

Let say I do have a record definition:
-record(my, {
 a :: atom(),
 b :: binary()
}).

Are there any possibility to extract a metadata of record elements
during run-time? E.g call_some_magic_fun that says R#my.a is atom,
R#my.b is binary...

Thanks for any advice!

Best Regards,
Dmitry >-|-|-*>



More information about the erlang-questions mailing list