Passing a Table to Lua?

BlitzMax Forums/BlitzMax Programming/Passing a Table to Lua?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Gabriel,

exactly that way: I have a "PeerTable", which uses the "light userdata" as its "key" and the corresponding Lua table as its "value".

Just don't forget to add every newly created object and remove it again when it gets garbage collected - and make the "PeerTable" weak, or you will never get rid of your objects!