[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How am I supposed to use yaci library?(Yet Another Class Implementation)
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 23 Feb 2014 10:48:55 +0200
On Sun, Feb 23, 2014 at 8:46 AM, Journeyer J. Joh
<oosaprogrammer@gmail.com> wrote:
> 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.
steve d.