[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The purpose of LUA_ENVIRONINDEX pseudo index
- From: Mildred <ml.mildred593@...>
- Date: Tue, 29 Aug 2006 02:58:34 +0200
> For example,
> could lua_environindex be used to hold data locally( or private ) to
> a C function that can be accessed in successive calls?
I don't know about LUA_ENVIRONINDEX but if you want to keep some
variables between the function call (like static variables in C) you
may find closures useful.
--
Mildred <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]