lua userdata gc

Posted by anon on Stack Overflow See other posts from Stack Overflow or by anon
Published on 2010-06-13T23:10:57Z Indexed on 2010/06/13 23:12 UTC
Read the original article Hit count: 297

Filed under:
|
|

Is it possible for a piece of lua user data to hold reference to a lua object? (Like a table, or another piece of user data?). Basically, what I want to know is:

Can I create a piece of userdata in such a way taht when the gc runs, the user data can say: "Hey! I'm holding references to these other objects, mark them as well."

Thanks!

© Stack Overflow or respective owner

Related posts about lua

Related posts about gc