mirror of
https://github.com/kikito/middleclass.git
synced 2024-11-08 09:34:22 +00:00
removed __eq from the list of inherited metamethods. Bad things happen if we can not compare pointers freely...
This commit is contained in:
parent
61976509af
commit
1f3ba19723
@ -20,7 +20,7 @@ Object.new = function(theClass, ...)
|
||||
end
|
||||
|
||||
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
|
||||
Object.subclass = function(theClass, name)
|
||||
|
Loading…
Reference in New Issue
Block a user