mirror of
https://github.com/kikito/middleclass.git
synced 2024-10-05 23:24:17 +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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user