<!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>----- Original Message ----- </DIV>
<DIV style="FONT: 10pt arial">
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=jos.koot@telefonica.net href="mailto:jos.koot@telefonica.net">jos koot</A>
</DIV>
<DIV><B>To:</B> <A title=pocm@soton.ac.uk href="mailto:pocm@soton.ac.uk">Paulo
J. Matos</A> </DIV>
<DIV><B>Sent:</B> Sunday, March 04, 2007 11:56 AM</DIV>
<DIV><B>Subject:</B> Re: [plt-scheme] current-eval proc should receive syntax
object,but doesn't</DIV></DIV>
<DIV><BR></DIV>
<DIV>Hi Paolo</DIV>
<DIV>You're right about the problem appearing with language module. It does not
occur when using language MzScheme. Even more weird is that even with language
Module, pressing the run button followed by requiring the module in the
interaction window does produce the desired results. I did this with DrScheme,
version 369.8-svn2mar2007 [3m].</DIV>
<DIV>Jos koot</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=jos.koot@telefonica.net
href="mailto:jos.koot@telefonica.net">jos koot</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</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 7:39
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [plt-scheme] current-eval
proc should receive syntax object,but doesn't</DIV>
<DIV><BR></DIV>On 3/3/07, jos koot <<A
href="mailto:jos.koot@telefonica.net">jos.koot@telefonica.net</A>>
wrote:<BR>><BR>><BR>> Hi Paulo,<BR>> It works fine for me.<BR>>
DrScheme, version 369.8-svn2mar2007 [3m], Windows XP
home.<BR>><BR><BR>Wierd...<BR>Clean install of SVN (r5724) (original post
was with r5710) gave me<BR>the same problem:<BR>Benvindo a DrScheme, versão
369.8-svn3mar2007 [3m].<BR>Linguagem: (module ...).<BR>.
syntax-object->datum: expects argument of type <syntax>;
given<BR>(current-namespace (module->namespace 'test))<BR><BR>The only
difference I can think of is definitely that you're on Window<BR>XP and I'm on
Linux. Do you know your current SVN release? I get the<BR>same error with the
stable 360.<BR><BR>With<BR>(module test mzscheme<BR><BR> (define
myeval<BR> (lambda (datum)<BR>
datum))<BR><BR> (current-eval (lambda (x) (myeval
x)))<BR><BR> )<BR><BR>I get upon running in module language the s-expr:
(current-namespace<BR>(module->namespace 'test))<BR><BR>i.e. if I have
(list? datum) inside myeval, I get #t.<BR><BR>Any
guesses?<BR><BR>Cheers,<BR><BR>Paulo Matos<BR><BR>> (((((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"))))<BR>><BR>> ----- Original Message
-----<BR>> From: Paulo J. Matos<BR>> To: PLT-list Mailing<BR>> Sent:
Saturday, March 03, 2007 3:00 PM<BR>> Subject: [plt-scheme] current-eval
proc should receive syntax object,but<BR>> doesn't<BR>><BR>> 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>><BR><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></BLOCKQUOTE></BODY></HTML>