lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Sep 30, 2015 at 5:27 AM Soni L. <fakedme@gmail.com> wrote:
I still don't see how the registry is needed, when the Lua side doesn't
need one.

Because removing it would break backwards compatibility?

If you're really worried about collisions, there are a few techniques presented in the PIL book:

  * Use the address of a static variable as a key
  * Use references
  * Use upvalues instead

http://www.lua.org/pil/27.3.html