Lua base functions

Lua base functions and variables

These are the "base" functions in Lua (that is, those that are not in library tables).


_G

Variable which is the global environment table. (_G._G == _G)
You cannot change the environment by assigning to _G, use setfenv instead.

_VERSION

A global variable that is a string containing the current Lua interpreter version.

print (_VERSION) --> Lua 5.1

Lua functions

Topics