I'm not an expert on this, but I don't think that's how it works. Tables can point to other tables, which can in turn point back to the a previous table (creating a "loop")... and then we've got the global table (_G).... I just don't see it working how you've described it. I saw an article about memory footprints in Lua that I wanted to link here, but of course now that I want it, I don't see it any more.
|