[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))

Attachment: pgpaOzFyWRzkx.pgp
Description: PGP signature

reply via email to

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