From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: reserved-keyword in macro Date: Wed, 2 Feb 2022 11:13:53 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26819"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Feb 02 11:17:19 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 1nFChS-0006dW-19 for guile-user@m.gmane-mx.org; Wed, 02 Feb 2022 11:17:18 +0100 Original-Received: from localhost ([::1]:50182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFChQ-00075J-RW for guile-user@m.gmane-mx.org; Wed, 02 Feb 2022 05:17:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFCeO-0006ka-H9 for guile-user@gnu.org; Wed, 02 Feb 2022 05:14:10 -0500 Original-Received: from [2607:f8b0:4864:20::b2a] (port=33583 helo=mail-yb1-xb2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFCeL-0004Ox-VM for guile-user@gnu.org; Wed, 02 Feb 2022 05:14:07 -0500 Original-Received: by mail-yb1-xb2a.google.com with SMTP id j2so46140299ybu.0 for ; Wed, 02 Feb 2022 02:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Gja3pdaGrTbzZT7g74Il10EJ8cfvIKE6xsdKhAsqXuE=; b=MOvXkbYwWtBfrMblMbkpQCirxPYw5926AXIhYE9PNzqEcYUQolkezCcCb9ETh/NkPx VDiNRwyBHacCgo8KDvUQSTPoP2sqjfzSe+9cTGJRpPnmaQlaVQabz0Ye7OH88DLYIyRc xCKHQBvthl1Pw7OQdbC1o0iGjajxyUVjLN30B0xAXrrV0XI3wds3Br05l7WhYjyYJOWN lKzg+2GRn8Imd+HCKbB9el+D8o5jA2nXsEuuyWjpFLeP1MT06WRCkcxnaHg6JxHyiLPo SNSgzV1ImLuN0YqE71R/kbLSXtxWFsuK4RWHTWTKwrKxMF8roHTnuKmUIFXAY0xZf5MW 3OWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Gja3pdaGrTbzZT7g74Il10EJ8cfvIKE6xsdKhAsqXuE=; b=zO7Poe6sUOB7XNfjqgLZKbt9lNWjQcQSM+9Bp/J+guapO37+P8sfEhEctqH4WmnYyI zhtOFqDh0HHPjkWFlXuwaOFMQ9/bgICGfWADwbMLKMmXEEBD4NcULMskPhQXmn3oQ2Uz ncLjyJSuOrsbtnE7TnG+4R28YHCW4K1auXj0rgUk7RS59U7u3UwKAODbK+HoXT32LR8Z vxr5oynE00tjv49N4aA8+WBUNkr22TfcKmeb/Ja9uWADvLbSo2GmMM70+DekNHzEfQ3l XUV0/0zcq2iN2uGQ4m6VBECzKQNfr5qLkhlgu+bTPtGQ5Rznubbir1GdPoRUXKQoiww/ YEOA== X-Gm-Message-State: AOAM533qpa7wFX8gTnWTZKGkgxBGhuyEbr2eHX70RlL/QCM5pDUaWKVz nnvgVrRVd41Aaqk/+f86kaPji5jRNvYDUFgDjJlmyiwZUw8= X-Google-Smtp-Source: ABdhPJyssTm/Mn1YLV/PV61skvRnxne4lnHC0ROzpM3JjuVopTHha0LnxV0hkCft/kDYWFcuZp3bvTkNHgNuF5XM8c8= X-Received: by 2002:a81:1681:: with SMTP id 123mr707852yww.243.1643796844490; Wed, 02 Feb 2022 02:14:04 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b2a; envelope-from=damien.mattei@gmail.com; helo=mail-yb1-xb2a.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:17983 Archived-At: hello, what is the best way to use a reserved keyword in a macro (a keyword for me not already used in scheme): if i have multiple patterns in a macro,for example: (define-syntax macro (syntax-rules () ((_ arg1 arg2) code1) ((_ reserved-keyword arg) code2))) now if i call the macro with (macro reserved-keyword 777) code1 is expansed but not code2 i can merge code1 and code2 and do some inner test to check reserved-keyword like this: (if (equal? (quote arg1) (quote reserved-keyword)) ;; test which had worked in past but is there a better way like : (define-syntax macro (syntax-rules (reserved-keyword) but i can not fix it to work. regards, damien