[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Private data
- From: Tom Wrensch <twrensch@...>
- Date: Wed, 3 Oct 2001 16:12:49 -0700 (PDT)
On Wed, 3 Oct 2001, Curt Carpenter wrote:
> >How about upvalues (ie C closures)? There's also the registry, where
> you can store anything you want. --lhf
> Upvalues won't work. I need a solution that applies to all functions
> that could be called by Lua, including tag methods and call/line hooks.
> Two people suggesting using the registry??? You guys scare me! :-) If I
> were going to do that, I'd rather create a global variable in the lua
> state and use that.
Err...Lua's registry is pretty fast, you aren't thinking of the Windows
registry, are you?