From: Zhu Zihao <all_but_last@163.com>
To: 46522@debbugs.gnu.org
Subject: bug#46522: [PATCH]: Return *unspecified* for define-wrapped-pointer-type.
Date: Mon, 15 Feb 2021 12:01:43 +0800 [thread overview]
Message-ID: <86v9auhtco.fsf@163.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 157 bytes --]
In (system foreign), define-wrapped-pointer-type return the printer
procedure. It's better to return *unspecified* just like
define-record-type in srfi-9.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Return-unspecified-for-define-wrapped-pointer-type.patch --]
[-- Type: text/x-patch, Size: 946 bytes --]
From b31a5511c530e6b255d3eadf7bae55893eacf3ea Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
Date: Mon, 15 Feb 2021 11:56:13 +0800
Subject: [PATCH] Return *unspecified* for define-wrapped-pointer-type.
* module/system/foreign.scm (define-wrapped-pointer-type): Return *unspecified*.
---
module/system/foreign.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/module/system/foreign.scm b/module/system/foreign.scm
index d1c2ceb96..d8e0d44cc 100644
--- a/module/system/foreign.scm
+++ b/module/system/foreign.scm
@@ -197,4 +197,5 @@ which does the reverse. PRINT must name a user-defined object printer."
(let ((o (%wrap ptr)))
(hash-set! ptr->obj ptr o)
o)))))
- (set-record-type-printer! type-name print)))))))
+ (set-record-type-printer! type-name print)
+ *unspecified*))))))
--
2.30.0
[-- Attachment #3: Type: text/plain, Size: 101 bytes --]
--
Retrieve my PGP public key:
gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F
Zihao
reply other threads:[~2021-02-15 4:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86v9auhtco.fsf@163.com \
--to=all_but_last@163.com \
--cc=46522@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).