[erlang-questions] Generating a variable in a macro
Tue Jan 9 13:30:24 CET 2007
Den 2007-01-09 12:56:15 skrev Joel Reymont <>:
> I thought of that but there's record_info which is compile-time.
I made a small parse transform that allows you to easily
work around this problem:
Adding the two lines:
-export_records([r1,r2]). %insert your own record names
You get exported functions for creating,
modifying and inspecting the given records.
> On Jan 9, 2007, at 11:50 AM, Mats Cronqvist wrote:
>> Joel Reymont wrote:
>>> Any workarounds apart from passing the error variable as a macro
>> turn make_shared_table/3 into a function?
> erlang-questions mailing list
More information about the erlang-questions