This as the most simple example as I can imagine:
function NewPrint(...)
print("printed:", ...)
end
NewPrint("Hi")
Please note, I haven't actually done Lua for a while, I might have missed some syntax.
As per the Lua.org documentation , it was Lua 5.1 .
Lua 5.1 was released on 21 Feb 2006. Its main new features were a new module system, incremental garbage collection, new mechanism for varargs, new syntax for long strings and comments, mod and length operators, metatables for all types, new configuration scheme via luaconf.h, and a fully reentrant parser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With