lua-users home
lua-l archive

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

So to get the local globals table, i have to do a lua_getfevn() on the thread?

Marcus Brown wrote:

* David Morris-Oliveros <> on Tue, Oct 11, 2005:

Does LUA_GLOBALSINDEX refer to the real global, or to the new global that i just created? Or am i getting this all wrong?

LUA_GLOBALSINDEX always refers to the real global table (_G).

// David Morris-Oliveros
// Camera & Lua Coder
// Team Bondi

Team Bondi Pty Ltd
Level 2, 608 Harris Street
Ultimo, NSW 2007
Tel: +61 (0)2 8218 1500
Fax: +61 (0)2 8218 1507
This email may contain confidential information.  If you are not
the intended recipient, you may not copy or deliver this message to
anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Opinions, conclusions and other
information in this message that do not relate to the official business
of our firm shall be understood as neither given nor endorsed by it.