This is the mail archive of the guile@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] |
> - Primitive: env-define ENV SYMBOL VALUE > Bind SYMBOL to a new location containing VALUE in ENV. If SYMBOL What if: guile> (define env (let ((x 1) (y 2)) (let ((xx 1) (yy 2)) (the-environment)))) guile> env (#<environment > ((yy xx) 2 1) ((y x) 2 1)) Should (environment-define env 'xxx '12) extend the local environment or should it extend the top level environment. At the moment (let ((x 12) (y 13)) (environment-define (the-environment) 'x 100)) extends the top level environment but I don't know if that's a clever idea. Jost Jost --