suppose i have
--A.lua
A = Core.class()
function A:init()
print("A",self)
end
--B.lua
B = Core.class()
function B:init()
print("B",self)
end
when i try to create object of class B it actually prints :
A table: X
B table: Y
with X ~= Y. Is this the expected behavior? i was expecting X = Y, because the object should be the same.
because of this, code below :
--A.lua
A = Core.class()
function A:init()
self:foo()
end
function A:foo()
print("x")
end
--B.lua
B = Core.class(A)
function B:init()
end
function B:foo()
print("y")
end
will output "x". it should've been "y" right? am i missing something here?
Comments
Maybe this or this might help.
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
i've checked the release notes and it seems it's already fixed in newer release 2012.8 (i'm currently using the old one)