lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.