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: 317
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