mirror of
https://github.com/kikito/middleclass.git
synced 2024-11-25 02:44:20 +00:00
do not stub __metatable or __mode
This commit is contained in:
parent
d97a1bfbd4
commit
d6b5f5c22d
@ -97,9 +97,9 @@ end
|
|||||||
|
|
||||||
local Object = _createClass("Object", nil)
|
local Object = _createClass("Object", nil)
|
||||||
|
|
||||||
Object.static.__metamethods = { '__add', '__band', '__bor', '__bxor', '__bnot', '__call', '__concat', '__div', '__eq',
|
Object.static.__metamethods = { '__add', '__band', '__bor', '__bxor', '__bnot', '__call', '__concat',
|
||||||
'__ipairs', '__idiv', '__le', '__len', '__lt', '__metatable', '__mod', '__mode',
|
'__div', '__eq', '__ipairs', '__idiv', '__le', '__len', '__lt', '__mod',
|
||||||
'__mul', '__pairs', '__pow', '__sh1', '__shr', '__sub', '__tostring', '__unm' }
|
'__mul', '__pairs', '__pow', '__shl', '__shr', '__sub', '__tostring', '__unm' }
|
||||||
|
|
||||||
function Object.static:allocate()
|
function Object.static:allocate()
|
||||||
assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'")
|
assert(type(self) == 'table', "Make sure that you are using 'Class:allocate' instead of 'Class.allocate'")
|
||||||
|
Loading…
Reference in New Issue
Block a user