bjorn/manaserv — comment on commit d76c84580b931560502ae414991184d41d178b4e
File:  line 0
By Bertram25:

If I got it well, that's implementing the: "Either by creating one, or reusing an existing one." part using lua weak typing capacity, right?

It's amazing to see how you seem to be at ease with dealing with lua metatables and the registry. :)
It took me time to look through the logic of the insert() function because of my lack of knowledge there, but If I get it well, I guess you're also doing that to reduce the number of different stacks in the future, right?