lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Is the registry needed?
From
: Tim Perkins <tprk77@
...
>
Date
: Wed, 30 Sep 2015 16:04:06 +0000
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
References
:
Is the registry needed?
,
Soni L.
Re: Is the registry needed?
,
Dirk Laurie
Re: Is the registry needed?
,
Soni L.
Prev by Date:
Re: Is the registry needed?
Next by Date:
Re: Is the registry needed?
Previous by thread:
Re: Is the registry needed?
Next by thread:
Re: Is the registry needed?
Index(es):
Date
Thread