I once created a fun little demon. Which took advantage of certain features of lua and most importantly - metatables and setfenv.
You can remove the ()'s to a function call when supplying a string or a table. func({param = value}) -> func{param = value} func("param") -> func "param"
I once created a fun little demon. Which took advantage of certain features of lua and most importantly - metatables and setfenv.
You can remove the ()'s to a function call when supplying a string or a table.
func({param = value}) -> func{param = value}
func("param") -> func "param"
It even had full polymorphism.