lua-users home
lua-l archive

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


> I have been programming Lua for nearly two years, and it still
> took me several minutes to find the bug.

[...]

> function MyClass.__gt(x,y) return x:cmp(y)>0 end

Indeed, there is no __gt metamethod in Lua, only __lt and __le.