unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Akop Pogosian <apogosian@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: define-macro syntax error
Date: Tue, 12 Feb 2013 09:42:00 +0100	[thread overview]
Message-ID: <87liatsz3b.fsf@pobox.com> (raw)
In-Reply-To: <CAPH1SNvL6QNBSVYSpvakcQOLSdxxtah=FWWsiKxMz=bBqqoSxA@mail.gmail.com> (Akop Pogosian's message of "Tue, 12 Feb 2013 02:15:31 -0600")

On Tue 12 Feb 2013 09:15, Akop Pogosian <apogosian@gmail.com> writes:

> (define-macro when
>   (lambda (test . branch)
>     `(if ,test
>          (begin ,@branch))))
>
> will give an error:

This is a bug.  I just fixed it in stable-2.0; thanks for the report.

In the meantime, you can use:

  (define-macro (when test . branch)
    ...)

Sorry for the inconvenience.

Andy
-- 
http://wingolog.org/



  parent reply	other threads:[~2013-02-12  8:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12  8:15 define-macro syntax error Akop Pogosian
2013-02-12  8:20 ` Daniel Hartwig
2013-02-12  8:42 ` Andy Wingo [this message]
2013-02-12  9:26   ` Daniel Hartwig
2013-02-12 10:00     ` Akop Pogosian
2013-02-12 14:07     ` Andy Wingo
2013-02-12 10:11 ` Ian Price

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=87liatsz3b.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=apogosian@gmail.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).