From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.user Subject: Re: reserved-keyword in macro Date: Wed, 02 Feb 2022 11:33:18 +0100 Message-ID: <6f5e23754b7523f30e31d9006b0a5a1127d503cb.camel@telenet.be> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-BzvVQBnstn2bk4/pSUbv" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17845"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 To: Damien Mattei , guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Feb 02 11:39:28 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFD2u-0004VQ-Kx for guile-user@m.gmane-mx.org; Wed, 02 Feb 2022 11:39:28 +0100 Original-Received: from localhost ([::1]:57622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFD2t-0004X0-AC for guile-user@m.gmane-mx.org; Wed, 02 Feb 2022 05:39:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFCxE-0004Og-Pj for guile-user@gnu.org; Wed, 02 Feb 2022 05:33:38 -0500 Original-Received: from [2a02:1800:120:4::f00:15] (port=39034 helo=andre.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFCx8-0000kr-S0 for guile-user@gnu.org; Wed, 02 Feb 2022 05:33:35 -0500 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id qAZN2600V4UW6Th01AZN5n; Wed, 02 Feb 2022 11:33:23 +0100 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1643798003; bh=I20qWEQahYhj5g9Ne+6IDT+sld8siUhUPg+UrxNDCeM=; h=Subject:From:To:Date:In-Reply-To:References; b=LEz1Hiovw9SZFDuKpD3cSelipKnzRmXqPjK/h1/OkTSFD0IOLhdYFTQrE0UM9QFB1 ewjf9/JdZvXlGfx3LwoCjToUjSGgyrIXhfsg7cc43QfvSAwx6s39k+x+WazYogEP8/ DwA9Rqr6nEc7yuZlalHtLozRVpvtEXMaGZ5r/4KUusWadehyF7YS4/0S0n1ep9xKYa 1OPztlqBt09hv91Q+r4RaXP519237RwV7jqi7rebafMwVg4yMWqkVgMTLmFuWIns/t FilGGm72X8554EBACemzPiDiFwXrjb7LbGs283UKZ83YXx0MGpe0ZWifnrqz0Y8xnI jtznKuqSyMgOQ== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:15 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17984 Archived-At: --=-BzvVQBnstn2bk4/pSUbv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Damien Mattei schreef op wo 02-02-2022 om 11:13 [+0100]: > (define-syntax macro > =C2=A0 (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))) Greetings, Maxime --=-BzvVQBnstn2bk4/pSUbv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYfpd7hccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7s4PAP9oon7FNizHub35LN8yMUdTr4X0 +xG+Sz7VUx4I7hx2iQEAiuVXuph4+oTOli03dpPNGOMgfwlon3ol1GfJuOKnLQw= =muBQ -----END PGP SIGNATURE----- --=-BzvVQBnstn2bk4/pSUbv--