[erlang-questions] Generating a variable in a macro

Vlad Dumitrescu <>
Tue Jan 9 13:08:36 CET 2007


You could wrap the mnesia:create_shared_table() call inside a macro
and use it from an inlined function.

/Vlad

On 1/9/07, Joel Reymont <> wrote:
> I thought of that but there's record_info which is compile-time.
>
> 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
> >> argument?
> >
> >   turn make_shared_table/3 into a function?
> >
> >   mats
>
> --
> http://wagerlabs.com/
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list