[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "require" succesful, but returns "nil"
- From: Ketmar Dark <ketmar@...>
- Date: Wed, 18 Jul 2007 11:56:12 +0300
On Wed, 18 Jul 2007 09:57:19 +0200
"Frantisek Fuka" <fuka@fuxoft.cz> 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 ()
...
end;
...
...
return mymod;
so you can have isolated namespace, access to globals and avoid global
namespace polluting.