guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define-macro syntax error


From: Andy Wingo
Subject: Re: define-macro syntax error
Date: Tue, 12 Feb 2013 09:42:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Tue 12 Feb 2013 09:15, Akop Pogosian <address@hidden> 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/



reply via email to

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