[Top][All Lists]

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

Re: reserved-keyword in macro

From: Maxime Devos
Subject: Re: reserved-keyword in macro
Date: Wed, 02 Feb 2022 11:33:18 +0100
User-agent: Evolution 3.38.3-1

Damien Mattei schreef op wo 02-02-2022 om 11:13 [+0100]:
> (define-syntax macro
>   (syntax-rules ()
> ((_ arg1 arg2) code1)
> ((_ reserved-keyword arg) code2)))

The rules are matched in-order, so when the first rule matches, the
second rule is ignored.  I suggest:

(define-syntax macro
  (syntax-rules (reserved-keyword)
    ((_ reserved-keyword arg) code2)
    ((_ arg1 arg2) code1)))


Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

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