lua-users home
lua-l archive

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


Peter Prade wrote:
> 
> so when you write
>         o:f(...)
> and o isn't registered with the new unified methods,

Here's a problem: there's no such thing as "isn't registered".
_Every_ object, even nil, has a method table.

And if there would be something like that, you could get the
"old" behaviour much simpler: just make methods(x) return x.
That is what current Lua does, use the object itself as the
method table.

Ciao, ET.