<!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.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi Paulo,</DIV>
<DIV>It works fine for me.</DIV>
<DIV>DrScheme, version 369.8-svn2mar2007 [3m], Windows XP home.</DIV>
<DIV> </DIV>
<DIV>(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))<BR>
(lambda(x)(lambda(y)(x(x y)))))<BR> (lambda(x)(x)x))<BR>
(lambda()(printf "Greetings, Jos~n"))))</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=pocm@soton.ac.uk href="mailto:pocm@soton.ac.uk">Paulo J. Matos</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=plt-scheme@list.cs.brown.edu
href="mailto:plt-scheme@list.cs.brown.edu">PLT-list Mailing</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, March 03, 2007 3:00
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [plt-scheme] current-eval proc
should receive syntax object,but doesn't</DIV>
<DIV><BR></DIV>Hello all,<BR><BR>I'm working on DrScheme 369.8-svn28feb2007
(which is pretty recent). I<BR>wonder if this is a bug, and if yes if it has
been fixed already or if<BR>it is just me doesn't what I'm not supposed
to.<BR>(module test mzscheme<BR><BR> (define
myeval<BR> (lambda (datum)<BR>
"buu"))<BR><BR> (current-eval (lambda (x) (myeval
(syntax-object->datum x))))<BR><BR> )<BR><BR>I
get:<BR>syntax-object->datum: expects argument of type <syntax>;
given<BR>(current-namespace (module->namespace 'test))<BR><BR>Since docs
say:<BR>(current-eval [proc]) gets or sets a procedure that takes
an<BR>expression -- in the form of syntax object, S-expression,
compiled<BR>expression, or compiled expression wrapped in a syntax object --
and<BR>returns the expression's value (or values; see section 2.2).<BR><BR>I
guess that applying syntax-object->datum to x would always work.<BR><BR>--
<BR>Paulo Jorge Matos - pocm at soton.ac.uk<BR><A
href="http://www.personal.soton.ac.uk/pocm">http://www.personal.soton.ac.uk/pocm</A><BR>PhD
Student @ ECS<BR>University of Southampton,
UK<BR>_________________________________________________<BR> For
list-related administrative tasks:<BR> <A
href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</A><BR></BLOCKQUOTE></BODY></HTML>