[plt-scheme] question about eval in macro

From: Jos Koot (jos.koot at telefonica.net)
Date: Thu Aug 2 07:47:52 EDT 2007

Thanks, you're right. Sorry, stupid of me. I wrongly extracted an alledged 
problem from a more complicated program in which I do sometimes have a problem. 
Thought I had found the cause. I'll have to hunt for it all over again.
Jos Koot

---- Original Message ----- 
From: "Chongkai Zhu" <czhu at cs.utah.edu>
To: "Jos Koot" <jos.koot at telefonica.net>
Cc: "PLT-list" <plt-scheme at list.cs.brown.edu>
Sent: Thursday, August 02, 2007 11:59 AM
Subject: Re: [plt-scheme] question about eval in macro


> Aren't you mean
>
> (define-syntax s (syntax-rules () ((_ x) (eval 'x))))
>
> (s '#0=(1 . #0#))
>
> ? It works fine.

> Chongkai
>
>
> Jos Koot wrote:
>> Who can help me understand the following two ???s ?
>>  (eval ''#0=(1 . #0#)) ; --> #0=(1 . #0#) ; ok
>> (define s (syntax-rules () ((_ x) (eval 'x))))
Stupid of me
[snip] 



Posted on the users mailing list.