Lua Enum

When start scripting with Lua one may notice that its functional range is some what reduced to a tiny set of essential basics. One thing I was missing at least is an enum type. But we could implement something very close. Before we start I want to recommend the online demo at lua.org. Just paste your lua code into the lua-shell window and press “run” to see if it works. A very simple enum function could be something like this: Continue reading Lua Enum