Thanks!<div><br></div><div>Calling the current-namespace did the trick.</div><div><br><div class="gmail_quote">On Fri, Jul 2, 2010 at 1:15 PM, Neil Van Dyke <span dir="ltr"><<a href="mailto:neil@neilvandyke.org">neil@neilvandyke.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Does setting the "current-namespace" parameter fix it for you? <br>
#lang scheme/base<br>
<br>
(define my-namespace (make-base-namespace))<div class="im"><br>
<br>
(define (tree->proc tree symbol)<br></div>
(parameterize ((current-namespace my-namespace))<br>
(eval `(lambda (,symbol) ,tree))))<br>
<br>
((tree->proc '(+ x (* 3 (* x x))) 'x) 42)<br>
;; ==> 5334<br>
<br>
Also, a comma was missing in the original example.<br><font color="#888888">
<br>
-- <br>
<a href="http://www.neilvandyke.org/" target="_blank">http://www.neilvandyke.org/</a><br>
</font></blockquote></div><br></div>