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] |
> In Scheme, you can't change the environment of a closure, so "x" and (define cl (let ((x 1) (y 2)) (lambda () (display HUGO)))) (procedure-environment cl) -> (((y x) 2 1) #<procedure (symbol define?)>) Is it save so change (extend) that list? For example: (set-car! (procedure-environment cl) '((y x HUGO) 2 1 9)) It seems to work okay: (cl) -> 9 Jost