So for fun, I've been tinkering with compression algorithms in lua, and in order to make things easier for myself, I've also created a module script that acts like a doubly linked list that stores key value pairs (so basically a dictionary that acts like a doubly linked list).
So what my question is about is: when I am finished using a linked list or a chain of nodes, is there anything I need to do to mark each node or whole list for garbage collection besides removing references to each node?
Read into it a bit, and the website I was reading from said the following:
Because of garbage collection...no need to free them when no longer needed except for setting it to nil. Lua uses a garbage collector that runs from time to time to collect dead objects when they are no longer accessible from the Lua program.
In C/C++ freeing node clears all it's values from memory as well - and that's without a garbage collector, so I assume ROBLOX will clear out the node's values as well acting as free() or delete() when you set the node to nil. The variables are no longer accessible since the references to the node were deleted so according to that website, they should be deleted.