[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: NaN in Lua 5.3 Reference Manual
- From: Duncan Cross <duncan.cross@...>
- Date: Sat, 24 Jun 2017 12:56:45 +0100
On Sat, Jun 24, 2017 at 12:00 PM, Enrique Garcia Cota <kikito@gmail.com> wrote:
> Or if you want something a bit more resistant against tables with metatable
> magic:
I believe this is not necessary -- the __eq metamethod is invoked only
if the two values are "not primitively equal", according to the
manual, so you cannot make a table unequal to itself in that way.
-Duncan