lua-users home
lua-l archive

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


On Wednesday 29 September 2004 15:20, Aaron Brown wrote:
> Dimitris Papavasiliou wrote:
> > Metatables should simply include fields for every
> > operation that can be performed on a Lua table or object
> > with table-like interface [....] This includes:
> >
> >  * Greater than, greater or equal (I just noticed these
> >    aren't there. Why?)
>
> According to section 13.2 of Programming in Lua:
>
> # There are no separate metamethods for the other three
> # relational operators, as Lua translates a ~= b to not (a
> # == b), a > b to b < a, and a >= b to b <= a.
>
> <http://www.lua.org/pil/13.2.html>

I see. Well that's perfectly all right then I guess. What do (all of) you (and 
especially the authors) think about the rest of the proposal?

Dimitris