removed __eq from the list of inherited metamethods. Bad things happen if we can not compare pointers freely...

This commit is contained in:
Enrique García 2010-10-20 01:24:09 +02:00
parent 61976509af
commit 1f3ba19723

View File

@ -20,7 +20,7 @@ Object.new = function(theClass, ...)
end end
local _metamethods = { '__add', '__sub', '__mul', '__div', '__mod', '__pow', '__unm', local _metamethods = { '__add', '__sub', '__mul', '__div', '__mod', '__pow', '__unm',
'__eq', '__lt', '__le', '__call', '__gc', '__tostring', '__concat' } '__lt', '__le', '__call', '__gc', '__tostring', '__concat' }
-- creates a subclass -- creates a subclass
Object.subclass = function(theClass, name) Object.subclass = function(theClass, name)