[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] hygienic macro and entry points
From: |
Daishi Kato |
Subject: |
Re: [Chicken-users] hygienic macro and entry points |
Date: |
Thu, 28 Apr 2005 07:40:39 +0900 |
User-agent: |
Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI) |
Thank you. I'll try it.
Is this fixed in the latest snapshot?
Daishi
At Wed, 27 Apr 2005 10:19:54 +0200,
felix winkelmann wrote:
>
> On 4/27/05, Daishi Kato <address@hidden> wrote:
> > Hi,
> >
> > Any workaround for this?
> > Maybe, I could use define-macro instead of define-syntax, though.
> >
>
> Yes, it's related to the highlevel-macro system (or more specific:
> to bad coding on my part). Here is a patch for "chicken-entry-points.scm":
>
> 38,44c38
> < [hygienic-macros
> < (define-syntax ##internal#compile-time
> < (syntax-rules ()
> < [(_ body ...) (begin body ...)] ) ) ]
> < [else
> < (define-macro (##internal#compile-time . body)
> < `(eval-when (compile) ,@body) ) ] )
> ---
> > [else] )
> 46,48c40,41
> < (##internal#compile-time
> <
> < (define ##sys#embedded-entry-point-counter 1)
> ---
> > (eval-when (compile)
> > (set! ##sys#embedded-entry-point-counter 1) )
> 264,265d256
> <
> < )
>
>
> cheers,
> felix