[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Protected tables proposal
- From: "Aaron Brown" <aaron-lua@...>
- Date: Wed, 29 Sep 2004 08:20:32 -0400
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>
--
Aaron