GNU bug report logs - #46522
[PATCH]: Return *unspecified* for define-wrapped-pointer-type.

Previous Next

Package: guile;

Reported by: Zhu Zihao <all_but_last <at> 163.com>

Date: Mon, 15 Feb 2021 04:18:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 46522 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#46522; Package guile. (Mon, 15 Feb 2021 04:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zhu Zihao <all_but_last <at> 163.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Mon, 15 Feb 2021 04:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zhu Zihao <all_but_last <at> 163.com>
To: bug-guile <at> gnu.org
Subject: [PATCH]: Return *unspecified* for define-wrapped-pointer-type.
Date: Mon, 15 Feb 2021 12:01:43 +0800
[Message part 1 (text/plain, inline)]
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.

[signature.asc (application/pgp-signature, inline)]
[0001-Return-unspecified-for-define-wrapped-pointer-type.patch (text/x-patch, inline)]
From b31a5511c530e6b255d3eadf7bae55893eacf3ea Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last <at> 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

[Message part 4 (text/plain, inline)]

-- 
Retrieve my PGP public key:

  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F

Zihao

This bug report was last modified 3 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.