LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] getfenv

function getfenv ( f )
Returns the current environment in use by the function.
f can be a Lua function or a number that specifies the function at that stack level: Level 1 is the function calling getfenv.
If the given function is not a Lua function, or if f is 0, getfenv returns the global environment.
The default for f is 1.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.197 seconds with 19 queries.