[plt-scheme] Question about eval and environments

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Thu Oct 25 14:32:06 EDT 2007

Mike J. Bell wrote:

> Is there any way around this?  I supposed I could write my own (mini) 
> version of eval, but that seems pretty extreme.  How can I get access to 
> the lexical environment at the point (eval) is executed so I can inject 
> arbitrary code?
> 
> Thanks for any tips!!!

Perhaps you can find what you need here?


http://schemecookbook.org/Cookbook/DynamicEvalCustomNamespace
http://schemecookbook.org/Cookbook/DynamicUntrustedEval

Ignore the description of "Dynamic Programming" at
http://schemecookbook.org/Cookbook/DynamicChapter#Dynamic_Programming
the recipes are in the wrong chapter - or perhaps it is the
chapter introduction that needs rewriting?

-- 
Jens Axel Søgaard



Posted on the users mailing list.