[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why args are invalid syntaxes in syntax-rules
From: |
Neil Jerram |
Subject: |
Re: why args are invalid syntaxes in syntax-rules |
Date: |
Thu, 18 Oct 2007 22:21:06 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
"Marco Maggi" <address@hidden> writes:
> |(define-syntax that
> | (syntax-rules (body handler)
> | ((_ (body ?body ...)
> | (handler ?handler-args ?handler ...))
> | (catch #t
> | (lambda ()
> | ?body ...)
> | (lambda ?handler-args
> | ?handler ...)))))
> |
> |(that (body
> | (display 'ciao)
> | (newline))
> | (handler (key . args)
> | #f))
FWIW: I just tried that (with CVS HEAD, and with a preceding
`(use-syntax (ice-9 syncase))'), and it worked for me.
Regards,
Neil