lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2008/12/5 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> But how could I get the metatable for the prototype of all functions?
>
> The backdoor way is to use debug.getmetatable.

You can also wrap your function in a full userdata and override __call
and then __add (but I think __concat may be more suited to the task).