Hello!
This might be a bit odd question but most of the stuff I found is on creating objects rather than destroying them.
I’ve got following question:
If I load a file like this
[lua]local foo = require(“foo”) [/lua]
which has some local variables. Once i foo=nil it i thought it would be deleted by the GC…however it is still there when I “require” it again.
The only thing I could come up with is to use something like classes and instantiate an object of foo but since Lua is not really object oriented I can’t believe that there is no other way. I am sure there is an easy answer but I just can’t see it…
Cheers!
Alex [import]uid: 11772 topic_id: 5946 reply_id: 305946[/import]