Using LuaGlider 201207171143
If you set a metatable with an __index, the table with be converted to a DisplayObject in the variable inspector.
local mytable = {};
setmetatable(mytable, {\_\_index = function(t,key) return "xxx" end});
Set a breakpoint on line 2 and start debug session, open the variable inspector. mytable
is a table as expected.
Step over the next line and mytable
will become a DisplayObject. [import]uid: 70847 topic_id: 35338 reply_id: 335338[/import]