[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "module" tutorial
- From: Mildred <ml.mildred593@...>
- Date: Fri, 14 Apr 2006 20:33:10 +0200
> Any reason(s) for 'module' littering the global environment?
I think it's for compatibility with lua 5.0 ... no ?
But we also changed the whole module package, so why ? Moreover, the
documentation of the module function don't specify that it uses a
global table (unless the global table already exists :
> module (name [, ...])
>
> Creates a module. If there is a table in package.loaded[name], this
> table is the module. Otherwise, if there is a global table t with the
> given name, this table is the module. Otherwise creates a new table t
> and sets it as the value of the global name and the value of
> package.loaded[name].
--
Mildred <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]