keplerproject/rings — pull request #1 by dcreager (2012-01-05 18:41:35+00:00)
Title: Support copying tables between Lua states

Here's a patch that lets you pass tables between Lua states, as the arguments or results of dostring and friends, as long as those tables don't contain any non-transferrable objects. The table-copying code also correctly handles recursive tables.

The table-copying code was copied from the [lua-llthreads library](https://github.com/Neopallium/lua-llthreads/), which uses similar logic to copy values between Lua states in separate threads.