This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A module system should resolve, not introduce, name conflicts


Neil Jerram <neil@ossau.uklinux.net> writes:


> I don't understand the paragraph where Rees' says "The need to make
> structures and interfaces second-class instead of first-class results
> from the requirements of static program analysis: ..." (page 12).  Can
> someone explain?

It shouldn't be possible to write something like this: (define
my-module-interface (compute-interface ...)) because this would
prevent a compiler/optimizer from doing its job.


> (What's the difference between (i) a "second-class object" and (ii) a
> first-class object bound to a name in a namespace that is only
> accessible through procedures like define-module, use-module,
> list-modules, etc.?)

No difference. (At least from the user's point of view).


Jost

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]