[plt-scheme] Problems with eval
On Jul 3, Doug Williams wrote:
> The (namespace-require 'scheme/base) worked fine. Is there any
> advantage/disadvantage to using the private namespace as Eli
> suggested?
It depends on what you need. The `namespace-require' modifies the
global namespace, the `make-base-namespace' creates a private
namespace that you can use for a single purpose, and the anchor makes
sure that the evaluation happens in the same language your module is
written in as well as making local bindings accessible in code that
you evaluate.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!