lua-users home
lua-l archive

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


Title: Message
The registry?  And does multiple instances mean multiple unique states of Lua (not sharing the same global state) or multiple shared states (sharing the same global state)?
 
Josh
-----Original Message-----
From: Curt Carpenter [mailto:curtc@microsoft.com]
Sent: Wednesday, October 03, 2001 2:48 PM
To: Multiple recipients of list
Subject: Private data

Does anyone have any good suggestions for how to deal with getting back to some private instance data when in a global C function called by Lua? Global variables are not an option, and there could be multiple instances of lua running.
 
It's easy enough to modify Lua to add this as part of the state, but is there a more correct way to do this that doesn't require modifying Lua?
 
Thanks,
 
Curt