3 ms·
> There is no such thing as classes or modules in Lua Actually, there is a module system (http://www.lua.org/manual/5.1/manual.html#5.3 http://www.lua.org/manu
by silentbicycle 17y ago
> There is no such thing as classes or modules in Lua
Actually, there is a module system (http://www.lua.org/manual/5.1/manual.html#5.3 http://www.lua.org/manual/5.1/manual.html#5.3), built on the environment manipulation methods. It was added to the language with 5.1, and seems a bit less mature than the rest of the language, but it's there. It's similar to Erlang's module system, except instead of listing exports at the top, anything not flagged as local is exported.