lua-users home
lua-l archive

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


> Isn't __eq just for that?

  My bad.  I implemented __eq and because of a simple typo it was not
working correctly.  Then I came across this in the Lua book "As a full
userdata is an object, it is only equal to itself." and old list postings
which indicated that __eq doesn't work for userdata.  Also I seemed to
confused the "ud = ud" issue with this.  It all snowballed from simple
little bug.

  Tom