Thanks for the replies. I'm curious... how does the algorithm work? How can Lua determine what does and doesn't need to be collected if it doesn't keep a reference count on an object?
For example, it's clear that, after the code I had shown earlier is run, that tables A and B are in their own little reference group, but then the same can be said of the table "mytableC = {}" right after it is created. It's in its own little reference group, yet it shouldn't be garbage collected.
I should probably buy the book. I'm starting to vaguely recall the idea of...