LuaObject-Orientation


Introduction

Lua itself offers no class system. It is, however possible to implement classes and objects as tables with just a few tricks.

Syntax

  • function <class>.new() return setmetatable({}, {__index=<class>}) end