lua-users home
lua-l archive

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

On Sun, Dec 27, 2009 at 1:10 PM, spir <> 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.