[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with macro
From: |
Joshua Judson Rosen |
Subject: |
Re: Help with macro |
Date: |
Fri, 22 Nov 2002 10:54:23 -0500 |
User-agent: |
Mutt/1.4i |
On Fri, Nov 22, 2002 at 03:47:58PM +0100, jblazi wrote:
> How can I write the following macro in Guile:
>
> (define-syntax defpoint
> (syntax-rules
> ()
> ( (defpoint p) (display "ERROR"))
> ( (defpoint p p-tupel) (define p (apply point 'p-tupel)))
> ( (defpoint p p-tupel pp ...) (begin (defpoint p p-tupel) (defpoint pp
> ...)))))
Just like that.
However, you must first:
(use-syntax (ice-9 syncase))
pgpaOzFyWRzkx.pgp
Description: PGP signature
- Help with macro, jblazi, 2002/11/22
- Re: Help with macro,
Joshua Judson Rosen <=