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. <> 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