Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Lua OOP library [closed]

Tags:

oop

lua

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

I've found LOOP. http://loop.luaforge.net/index.html It offers 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 the license.

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

like image 813
topright gamedev Avatar asked Apr 15 '10 17:04

topright gamedev


1 Answers

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 roll your own if necessary. The latter seems to be a very popular choice.

like image 129
ponzao Avatar answered Oct 28 '22 10:10

ponzao