chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] macroexpansion and csc


From: John Cowan
Subject: Re: [Chicken-users] macroexpansion and csc
Date: Fri, 21 Mar 2008 13:38:31 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Heinrich Taube scripsit:

> (define-macro (with-optkeys spec . body)
>  (expand-optkeys (car spec) (cdr spec) body))
> 
> (define (expand-optkeys args vars body)
>   `(let (...) ,@body))

A procedure (or variable) that is invoked from a low-level macro must
be defined using define-for-syntax so that it will be available for
execution at compile time.

-- 
Is a chair finely made tragic or comic? Is the          John Cowan
portrait of Mona Lisa good if I desire to see           address@hidden
it? Is the bust of Sir Philip Crampton lyrical,         http://ccil.org/~cowan
epical or dramatic?  If a man hacking in fury
at a block of wood make there an image of a cow,
is that image a work of art? If not, why not?               --Stephen Dedalus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]