1. Functions

Lua is an extension-based embeddable language. Lua itself is implemented as a stand-alone library, with the goal of being embedded in other applications. It does not have it’s own main(), it has to be called from a host program running in a different language (e.g. C).

Reference Manual:


Functions in Lua can return more than one value. Awesome! This gets around the semantic issues of passing in variables by reference, just so that you can save data to them (think pointers in C).

Posted: July 15th, 2013 at 10:31 am
Last Updated on: November 1st, 2017 at 9:08 am

Leave a Reply