[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How am I supposed to use yaci library?(Yet Another Class Implementation)
- From: Ousmane Roland Yonaba <roland.yonaba@...>
- Date: Sun, 23 Feb 2014 17:12:14 +0000
On Sun, 23 Feb 2014 10:48:55 +0200, steve donovan <firstname.lastname@example.org
On Sun, Feb 23, 2014 at 8:46 AM, Journeyer J. Joh
> But yaci doesn't look like normal lua module.
> It just look like a code block exporting one global function and one table.
That's the joy and sorrow of Lua - it is a module, just not defined in
a common way. You look at the end of the file, and it says:
end -- 2 global things remain: 'Object' and 'newclass'
This is probably bad style, but it does work fine. require 'yaci'
adds these new globals.
As a followup to S. Donovan's comment, may I humbly recommend a few
alternatives, in case you still want to stick to a more "updated" Lua class
There's a ton out there, but I can definitely recommend MiddleClass,
which is Lua 5.1 and 5.2 compatible. It is quite solid, and extensible via
Also, there is 30log, if you like tiny things. I am the author.