This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Understanding eval2 and local-eval
- To: "guile at sourceware dot cygnus dot com" <guile at sourceware dot cygnus dot com>
- Subject: Understanding eval2 and local-eval
- From: "Dale P. Smith" <dpsm at en dot com>
- Date: Wed, 24 May 2000 15:54:22 -0400
- Organization: Altus Technologies Corporation.
What is the difference between eval2 and local-eval?
I know I'm opening a can-o-worms. I know I should be patient and wait for the new environment thing. I still want to know how this stuff works.
I found I can do things like:
(define env (let ((foo (lambda () (display "foo here\n")))
(bar (lambda () (display "bar!\n"))))
(the-environment)))
(local-eval '(foo) env)
foo here
(local-eval '(bar) env)
bar!
How do you use eval2?
Is there a way to remove definitions from an environment? The macro undefine only works at the top-level.
Thanks!
-Dale
--
Dale P. Smith
Altus Technologies Corp.
dsmith@altustech.com
400-746-9000 x309