<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I'd like to define values within a module context using
eval:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> (module foo
mzscheme<BR> (eval '(define x 1)))</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>and require them in another module:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> (module bar
mzscheme<BR> (require foo)<BR>
x ; error: expand: unbound variable
x</FONT></DIV>
<DIV><FONT face=Arial size=2> )<BR></DIV></FONT>
<DIV><FONT size=2>Since eval defines X at the top level of the current
namespace it isn't</FONT></DIV>
<DIV><FONT size=2>seen within the bar module. Is there a way to require
the top level in bar</FONT></DIV>
<DIV><FONT size=2>or alternatively eval within the namespace of the module
foo? I'm sorry</FONT></DIV>
<DIV><FONT size=2>I don't understand namespaces mechanics.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>John</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>