[plt-scheme] Problems with eval

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jul 3 15:47:51 EDT 2008

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!


Posted on the users mailing list.