From: Joshua Judson Rosen <rozzin@geekspace.com>
Cc: guile-user@gnu.org
Subject: Re: Help with macro
Date: Fri, 22 Nov 2002 10:54:23 -0500 [thread overview]
Message-ID: <20021122155423.GM28038@linger.twisted-muse.org> (raw)
In-Reply-To: <200211221547.58987.jblazi@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
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 #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2002-11-22 15:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-22 14:47 Help with macro jblazi
2002-11-22 15:54 ` Joshua Judson Rosen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021122155423.GM28038@linger.twisted-muse.org \
--to=rozzin@geekspace.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).