Translations:Extension:Scribunto/Lua reference manual/1341/en

The environment for a function may be accessed using the getfenv function and changed using the setfenv function; in Scribunto, these functions are severely restricted if they are available at all.