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: #:printer filed in language specification. Date: Sun, 19 Sep 2021 14:24:37 +0200 Message-ID: References: <66ede8b9-6e56-cb7a-28d2-825dc93ef8cd@cock.li> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-k7yeKzDumqfX/BTyVPB4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 Cc: Guile User To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Sep 19 14:25:05 2021 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 1mRvsW-0003x1-Jq for guile-user@m.gmane-mx.org; Sun, 19 Sep 2021 14:25:04 +0200 Original-Received: from localhost ([::1]:60546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRvsU-0003FU-JY for guile-user@m.gmane-mx.org; Sun, 19 Sep 2021 08:25:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRvsJ-0003Ee-2b for guile-user@gnu.org; Sun, 19 Sep 2021 08:24:51 -0400 Original-Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]:54372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRvsG-0002pj-Us for guile-user@gnu.org; Sun, 19 Sep 2021 08:24:50 -0400 Original-Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by michel.telenet-ops.be with bizsmtp id voQk2500Q0mfAB406oQlL7; Sun, 19 Sep 2021 14:24:45 +0200 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1632054285; bh=0Wxijv25ugF+78F6RPhwmKBx0EQdAkY0Z5S7nNASAx8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ZsCy78eOld21yH+MtY1K+htmclbUs7aIHPDPDCBH6WgGLipbmWSoPj5nb/9E0uemm WGTHdXU08QORN59FmI5yk3nSIMRALo7YGYAOlyDmSoQgxlDTMryEh6gQ62hyItzKai 4H9hrMMiRkDNHupZLk/RkWheJxZ183g/IZyREb3OZAfCNvCYp+Fzzzv/bocjctpX3s FyegMoY/7ZObXSk38BIWHu2MNMoeAWRXYKu1aOjtO+ISOn8Nno16smBtTMIC/xI6zZ yd+It8Oir7Shig4mlf2Se+b2bCVFf7Sww9tGEwJQiITxHGiGccYL+n2Qv509S56oJP K7blSfGbOpHWw== Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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:17756 Archived-At: --=-k7yeKzDumqfX/BTyVPB4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Zelphir Kaltstahl schreef op zo 19-09-2021 om 12:11 [+0000]: > Hi Maxim! >=20 > Do you know of any simple example anywhere for applicable structs? I migh= t have > another use for them. =46rom NEWS in the Guile source code: ** Applicable struct support One may now make structs from Scheme that may be applied as procedures. To do so, make a struct whose vtable is `'. That struct will be the vtable of your applicable structs; instances of that new struct are assumed to have the procedure in their first slot. `' is like Common Lisp's `funcallable-standard-class'. Likewise there is `', which looks for the setter in the second slot. This needs to be better documented. For a not-very-simple example, see modules/oop/gooops.scm in Guile's source= code. I don't know any simple examples. Greetings, Maxime. --=-k7yeKzDumqfX/BTyVPB4 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+4iGRcl7gUCYUcsBRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7s+EAP4hERR/wKZw4qdDmc1sKjJHQoE+ dKR6pTXxrhXc3YiDeAD9GOCYGJH0ownAl4HKKKzTMEO1zBTOSmuY4eVRq3lN1wc= =4JUL -----END PGP SIGNATURE----- --=-k7yeKzDumqfX/BTyVPB4--