lua-users home
lua-l archive

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

On Wed, 18 Jul 2007 09:57:19 +0200
"Frantisek Fuka" <> wrote:

> module("MyModules.XML", package.seeall)
what is the reason in using "module" with "seeall"? build the table
yourself and throw away "module" ('cause this function is a bad idea
anyway, imo %-). something like this:

local mymod = {};

function mymod.ABC ()


return mymod;

so you can have isolated namespace, access to globals and avoid global
namespace polluting.