Best Lua OOP Library

What is the best Lua OOP library in terms of speed, syntax convenience, LOC and license? Thanks.

I found a LOOP. http://loop.luaforge.net/index.html It offers a pretty nice syntax:

local oo = require "loop.base" local Date = oo.class { -- default field values day = 1, month = 1, year = 1900, } local birthday = Date {} -- instance 

But I do not like this license.

And: http://lua-users.org/wiki/ObjectLua

+6
oop lua
source share
1 answer

I recommend checking out http://lua-users.org/wiki/ObjectOrientedProgramming . It has links to the most popular Lua OOP libraries and instructions on how to collapse if necessary. The latter seems to be a very popular choice.

+5
source share

All Articles