开发者

Best Lua OOP library [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discuss开发者_如何学编程ion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜