[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Conceptual problem with module
- From: Mildred <ml.mildred593@...>
- Date: Wed, 26 Apr 2006 16:22:54 +0200
On Wed, 26 Apr 2006 10:45:23 +0200 Grosch Franz-Josef (CR/AEA3-Fr) *
> My point of view is: A module is a globally unique unit. As soon as it
> is loaded (by require, preloaded or predefined) is has a globally
> unique name.
> I regard it as a design error, if I happen to build a system that
> loads two different modules with the same name.
With the require you don't have the choice ... modules names must be
different. And it is not a problem as long as you don't touch your
But you may have a programm that uses a global variable and require a
module that itself require a module of the global variable's name.
If the module create a global table, the global variable used by the
programm will be deleted...
Mildred <xmpp:email@example.com> <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]