lua-users home
lua-l archive

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


True, I forgot about that. Is there any chance you could register a C
function that uses the API to give you a "dummy" full userdata (one
byte long or something) instead of a table, and set the metatable on
that instead?

On 8/3/07, PA <petite.abeille@gmail.com> wrote:
>
> On Aug 03, 2007, at 14:24, Duncan Cross wrote:
>
> > Wrap the function as the __call metamethod in a table?
>
> Cunning... :P
>
> But then... one cannot (re)define the __len metamethod :(
>
>