Thursday, June 17, 2010

How to iterate through luabind class (in lua or in c++)?

Programmer Question

How to iterate through luabind class (in lua or in c++)?



class 'A'

function A:__init()
-- Does not work
-- self is userdata, not a table
for i, v in pairs(self) do
end
end


Thanks



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails