(File):flush

(File):flush Available since LÖVE 0.9.0 This function is not supported in earlier versions. Flushes any buffered written data in the file to the disk. Function Synopsis success, err = File:flush( ) Arguments None. Returns boolean success Whether the file successfully flushed any buffered data to the disk. string err (nil) The error string, if an error occurred and the file could not be flushed. See Also File File:write File:setBuffer

(File):eof

(File):eof Removed in LÖVE 0.10.0 It has been renamed to File:isEOF. If the end-of-file has been reached Function Synopsis eof = File:eof( ) Arguments None. Returns boolean eof Whether EOF has been reached See Also File

(File):close

(File):close Closes a File. Function Synopsis success = File:close( ) Arguments None. Returns boolean success Whether closing was successful. See Also File

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

_G

_G§2.2

xpcall()

xpcall (f, msgh [, arg1, ···]) This function is similar to pcall, except that it sets a new message handler msgh.

Weak Tables

2.5.2 – Weak Tables A weak table is a table whose elements are weak references. A weak reference is ignored by the garbage collector. In other words, if the only references to an object are weak references, then the garbage collector will collect that object. A weak table can have weak keys, weak values, or both. A table with weak values allows the collection of its values, but prevents the collection of its keys. A table with both weak keys and weak values allows the collection of both keys

utf8.offset()

utf8.offset (s, n [, i])nsiniin#s + 1utf8.offset(s, -n)nnil As a special case, when n is 0 the function returns the start of the encoding of the character that contains the i-th byte of s. This function assumes that s is a valid UTF-8 string.

utf8.len()

utf8.len (s [, i [, j]])sijij

utf8.codes()

utf8.codes (s) Returns values so that the construction for p, c in utf8.codes(s) do body end will iterate over all characters in string s, with p being the position (in bytes) and c the code point of each character. It raises an error if it meets any invalid byte sequence.