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: Guile API's (Re: About modules)


Michael Livshin <mlivshin@bigfoot.com> writes:


> last I checked, R5RS's `define' & `load' didn't take an environment
> parameter.

At least `loadī does.  R5RS `load' must be defined as follows:

(define (load name)
  (primitive-load name (interaction-environment))))

The problem is: The gh_ API doesn't have a REPL associated with it.


Of course, you can introduce a special environment for use by the gh_
functions.  But this would break the old code also.

Another possibility would be to emulate what guile has at the
moment:  Everything in one giant environment, a giant boot-9.scm and
the module system on top of it.

But if I remember correctly people complained that this solution
turned out to be quite slow.


Jost

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