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: Fri, 04 Feb 2022 17:44:07 +0100 Message-ID: <4ee1da97bf91dda65fc3018ce34a99804b4dec2f.camel@telenet.be> References: <6f5e23754b7523f30e31d9006b0a5a1127d503cb.camel@telenet.be> <87bkzou5yi.fsf@vijaymarupudi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-nMrUGVpVtJ1K8hKvYiKU" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19308"; 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 Fri Feb 04 17:49:38 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 1nG1mC-0004k1-IK for guile-user@m.gmane-mx.org; Fri, 04 Feb 2022 17:49:36 +0100 Original-Received: from localhost ([::1]:56950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG1mB-0000LC-5W for guile-user@m.gmane-mx.org; Fri, 04 Feb 2022 11:49:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG1hA-0005fk-B4 for guile-user@gnu.org; Fri, 04 Feb 2022 11:44:24 -0500 Original-Received: from [2a02:1800:120:4::f00:13] (port=55346 helo=baptiste.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 1nG1h7-0001Iv-9D for guile-user@gnu.org; Fri, 04 Feb 2022 11:44:23 -0500 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id r4kC2600k4UW6Th014kDhC; Fri, 04 Feb 2022 17:44:13 +0100 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1643993053; bh=P8p0X9/TYLmuz7km5SSFtS6W/e+BsvjT0IJX57oo67k=; h=Subject:From:To:Date:In-Reply-To:References; b=mq/8DzXWznv8yYydoE+u7YQ4Pkh/84jf//hZodwOLJJIxaXnpmSz3Or0mw49iWsPQ 9CCiwR6jDj/J21u+VO9HzoAFOoiiKJeIqCbosLVGswC9Kkb9xTyJEn7sV+Rlt7Cwqy JWIuxzuNRJW4GKS2DmvSqjk9y/0mzztTUuCtNsf4gItAYnQqg1irbXRP/N8ofz8ASH XCbK+WGSmI1AQ9N1tG6pbv8ine2stmQ5W/7mInbN5otWsX2yXhrZ6wQ4q6SpIvQH4w hEnEdhxaLcEVE+T0kPDK9wrJ2j8cPNEIAjvvRdY+l4sFrFrFPcP0f3787cXhmEfA9K N8lO9TNBL5zCQ== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:13 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.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:17996 Archived-At: --=-nMrUGVpVtJ1K8hKvYiKU Content-Type: multipart/mixed; boundary="=-h3UqCL0Ix7mXoMVCfuUl" --=-h3UqCL0Ix7mXoMVCfuUl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Damien Mattei schreef op vr 04-02-2022 om 17:24 [+0100]: > even with $nfx$ it does not seem to be possible without set!-values: > https://docs.racket-lang.org/reference/set_.html#%28form._%28%28lib._rack= et%2Fprivate%2Fmore-scheme..rkt%29._set%21-values%29%29 >=20 > does someone know how to implement set!-values in Scheme for Guile? This is not Guile-specific, it works in any Scheme with syntax-rules, by using a form of recursion, call-with-values, set!, lambda and values, see attachement (LGPL3.0+ licensed). Also, Racket is free software, so you could look at the source code of Racket, maybe Racket's implementation can be ported to Guile Scheme and maybe it's already valid Guile Scheme. > On Fri, Feb 4, 2022 at 9:21 AM Damien Mattei > wrote: > [ a huge block of text ] This block of text does not appear to have anything to do with your question, what is it included for? Greetings, Maxime. --=-h3UqCL0Ix7mXoMVCfuUl Content-Description: Content-Disposition: attachment; filename="f.scm" Content-Type: text/plain; name="f.scm"; charset="UTF-8" Content-Transfer-Encoding: base64 Ozs7IENvcHlyaWdodCDCqSAyMDIyIE1heGltZSBEZXZvcwo7OzsKOzs7IFRoaXMgbGlicmFyeSBp cyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5Cjs7 OyBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBMZXNzZXIgR2VuZXJhbCBQd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gKChfICgpIGV4 cCkKICAgICAoY2FsbC13aXRoLXZhbHVlcwogICAgICAgKGxhbWJkYSAoKSBleHApCiAgICAgICAo bGFtYmRhICgpICh2YWx1ZXMpKSkpKSkgOyBub3RoaW5nIHRvIGRvIQoKKGRlZmluZSB4KQooZGVm aW5lIHkpCihkZWZpbmUgeikKKHNldCEtdmFsdWVzICh4IHkgeikgKHZhbHVlcyAwIDEgMikpCihw ayB4IHkgeikK --=-h3UqCL0Ix7mXoMVCfuUl-- --=-nMrUGVpVtJ1K8hKvYiKU 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+4iGRcl7gUCYf1X1xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iyfAP99zLFs7UB6Ixg8YaatybgGo9jl UD3xukihOdsf1HGr7wEAu9gdAS84swfW3oNiYUVmz4CcODwPmZ2TBOGPS33rugI= =zOEq -----END PGP SIGNATURE----- --=-nMrUGVpVtJ1K8hKvYiKU--