[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: operator overloading
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Fri, 5 Dec 2008 14:57:48 +0100
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).