6.1 – Basic Functions
The basic library provides core functions to Lua. If you do not include this library in your application, you should check carefully whether you need to provide implementations for some of its facilities.
getmetatable (object) If object does not have a metatable, returns nil. Otherwise, if the object's metatable has a __metatable field, returns
tonumber (e [, base]) When called with no base, tonumber tries to convert its argument to a number. If the argument is already a number or a string convertible
dofile ([filename])dofilestdindofiledofile
_VERSION A global variable (not a function) that holds a string containing the running Lua version. The current value of this variable is "Lua 5.3".
next (table [, index]) Allows a program to traverse all fields of a table. Its first argument is a table and its second argument is an index in this table. next returns
rawget (table, index)table[index]__indextableindex
pcall (f [, arg1, ···]) Calls function f with the given arguments in protected mode. This means that any error inside f is not propagated; instead
print (···)stdouttostringprint
rawlen (v)v__len
_G§2.2
Page 1 of 3