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.

next()

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

2017-02-21 04:15:25
pcall()

pcall (f [, arg1, ···]) Calls function f with the given arguments in protected mode. This means that any error inside f is not propagated; instead

2017-02-21 04:15:43
_VERSION

_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".

2017-02-21 04:16:42
dofile()

dofile ([filename])dofilestdindofiledofile

2017-02-21 04:10:50
getmetatable()

getmetatable (object) If object does not have a metatable, returns nil. Otherwise, if the object's metatable has a __metatable field, returns

2017-02-21 04:11:21
rawget()

rawget (table, index)table[index]__indextableindex

2017-02-21 04:15:46
print()

print (···)stdouttostringprint

2017-02-21 04:15:44
tonumber()

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

2017-02-21 04:16:24
_G

_G§2.2

2017-02-21 04:16:42
rawlen()

rawlen (v)v__len

2017-02-21 04:15:47