[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: == mystery
- From: Duncan Cross <duncan.cross@...>
- Date: Sun, 27 Dec 2009 13:22:02 +0000
On Sun, Dec 27, 2009 at 1:10 PM, spir <denis.spir@free.fr> wrote:
> ??? Não entendo... Seems equals() is not called in last case.
The __eq() metamethod is only consulted if both sides of the '==' are
of the same basic type (number, table, userdata, etc.) If two values
have different basic types, they will always considered unequal.
> PS: Is there a way to avoid newline at end of print()?
Use io.write() instead.
-Duncan