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.
loadfile ([filename [, mode [, env]]]) Similar to load, but gets the chunk
error (message [, level])messageerror Usually, error adds some information about the error position at the beginning of the message, if
load (chunk [, chunkname [, mode [, env]]]) Loads a chunk. If chunk is a string, the chunk is this string. If chunk is a function, load
ipairs (t) Returns three values (an iterator function, the table t, and 0) so that the construction for i,v in ipairs(t)
Page 3 of 3