lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>What if I did this:
>and then run millions of things for about 24 hours. If I dont touch the 
>'red_door' var, will it be gc'ed after that long period of time?

No, GC is based on accessiblity not on age.
Essentially, that means that all values that are stored in global variables, 
or in fields of tables stored in global variables are kept forever. Values that
are not accessible are collected.