[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __unm metamethod in Lua manual
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 28 Oct 2010 17:13:38 -0200
> Also just out of curiosity, what is the reason for using two arguments
> in a metamethod that only needs one? Or to put it another way: Is
> there a cool feature that this provides that I'm missing out on? :)
You are not missing anything. This is only a hack. By adding this extra
argument we can use for these metamethods the same machinery already in
place for all other binary metamethods :)
-- Roberto