lua-users home
lua-l archive

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


Regular Lua doesn't allow this, but LuaPlus, a C++ wrapper library over the top of Lua 5.0, does.  In fact, almost every operation may be performed without having to worry the least little bit about stack manipulation.
 
If you're interested, find it here:  http://wwhiz.com/LuaPlus.
 
Thanks,
Josh


From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Tobias Käs
Sent: Wednesday, June 18, 2003 2:39 PM
To: Lua list
Subject: Leaving objects permanently on the stack

Hello,
Is it save to leave objects on the stack for faster access, using absolute stack indices?
I consider this to avoid getting the same tables from the registry, each time a C function needs it (I have several of this kind).
 
Thanks.