[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <firstname.lastname@example.org> 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.