[plt-scheme] Problems with eval

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Thu Jul 3 16:09:14 EDT 2008

Based on that, I think that the make-namespace-anchor is what I need - I
tried it and it works.  It sounds like that would allow my constraints to
contain local variables, which is a good thing.  [Note, my current examples
don't do that, but I will come up with something that does.]

On Thu, Jul 3, 2008 at 1:47 PM, Eli Barzilay <eli at barzilay.org> wrote:

> 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080703/469ca9f6/attachment.html>

Posted on the users mailing list.