kikito / middleclass

Object-orientation for Lua
https://github.com/kikito/middleclass
MIT License
1.77k stars 190 forks source link

added function which checks is x an object #37

Closed Parki0 closed 8 years ago

kikito commented 8 years ago

Hello there,

There are several things incorrect on this PR.

if type(x) == 'table' and type(x.instanceOf) == 'function' and x:instanceOf(MyClass) then
...
end

Because all of this, I am going to close this issue. But thanks a lot for taking the time to send a pull request!