[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Passing functions addresses to tolua classes
- From: "jose_marin2 <jose_marin2@...>" <jose_marin2@...>
- Date: Mon, 03 Feb 2003 14:50:20 -0000
Hi!
Is there some way of do this?
Later, I will call the function inside the method "doDomething". How
to store the function to call it later? I know how to do using
lua_ref, but how to do this with tolua "classes"?
function someFunc()
...
end
function someOtherFunc()
...
end
theClass = MyClass:new()
theClass:SetFunc(someFunc)
theClass:doDomething()
theClass:SetFunc(someOtherFunc)
theClass:doDomething()