[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unified methods
- From: Edgar Toernig <froese@...>
- Date: Thu, 29 Nov 2001 21:18:10 +0100
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.