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)?
-----Original Message-----
From: Curt Carpenter []
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?