Lua

From Mario Fan Games Galaxy Wiki
Revision as of 00:56, 6 October 2009 by Draco Icebane (talk | contribs) (Cleaning / clarifying)
Lua
Lua.gif
Basics
Intermediate
Advanced
XLua
Add to this template
 Standardwikimessagebox.png This article assumes the use of Lua 5.1.

Information may not be accurate or may need revision if you are using a different version.

Lua, named after the Portuguese for the moon, is an extremely rapid and modular scripting language based heavily on Scheme and designed to be embedded into software development environments. It has full support for anonymous functions, coroutines and first-class functions. There are several extensions for Multimedia Fusion 2 that allow integration of Lua, such as Retriever II's XLua.

Lua's primary data structure is the table, and includes various data formats. It is generally used whenever custom data objects are created, and as such is extremely common in any advanced Lua code.

Lua itself is minimalist and does not directly feature many of the powers inherent in languages such as C, but these features may be implemented or emulated through the use of metamethods.

Lua supports C libraries (ie. *.dll files) when properly compiled to provide further functionality, as well as the userdata type, which may be manipulated both in C and Lua.

Lua is currently in version 5.1.4.

See also

External Links