From unknown Sat Jun 14 05:29:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49363: eof-object? is not exported from (ice-9 binary-ports) Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 03 Jul 2021 20:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49363 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 49363@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162534425414019 (code B ref -1); Sat, 03 Jul 2021 20:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 20:30:54 +0000 Received: from localhost ([127.0.0.1]:39928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmHu-0003e2-HT for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:30:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:56438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzmHq-0003dt-Ga for submit@debbugs.gnu.org; Sat, 03 Jul 2021 16:30:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmHq-00058c-9P for bug-guile@gnu.org; Sat, 03 Jul 2021 16:30:50 -0400 Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]:43248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzmHn-0004WD-VB for bug-guile@gnu.org; Sat, 03 Jul 2021 16:30:50 -0400 Received: from butterfly.local ([188.189.167.54]) by baptiste.telenet-ops.be with bizsmtp id QkWk250061AlBsU01kWkqX; Sat, 03 Jul 2021 22:30:45 +0200 Message-ID: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> From: Maxime Devos Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-53J/lGJcp0K5eGP2TH6y" Date: Sat, 03 Jul 2021 22:24:10 +0200 MIME-Version: 1.0 User-Agent: Evolution 3.34.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1625344245; bh=7rsTB9kMGPB/loAVfqwFPrpGYmSXoc/eBfRoF7uItzA=; h=Subject:From:To:Date; b=bhIavINy4tQIyUvy+Qlu84JOnzVwrbtg6gAmP1ELX6q8DCzRFGlu1h9jhHakH1IxG NznBqAUjpk2c0OeNefUjk72a0tlU6uoU5x4tHJ1PQz0LwIktmG9HGTw1kPZdARNi1d B0fkWv+fLHSj6FBfj5N3GBnJltasqOpYXqFB5W68UxqAbgC8vHIhBC7afE3MuaDLMa 4/qd+yo7qw0pJGGd2NEPPHfeOLpywUZoVTMXCq+PmTAigQoMKjcTHEMcKcMkDw4IeF x77ot98SQkeVv8XZqak58niet77YGOxggLcpy4dkxtOzPW5eArTG10lPggj4PwU7Kc QFWK28QzVh34w== 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: -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-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-53J/lGJcp0K5eGP2TH6y Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable According to the manual: 6.12.2 Binary I/O ----------------- [...] To use these routines, first include the binary I/O module: (use-modules (ice-9 binary-ports)) [...] The end-of-file object is unlike any other kind of object: it=E2=80=99s = not a pair, a symbol, or anything else. To check if a value is the end-of-file object, use the =E2=80=98eof-object?=E2=80=99 predicate. -- Scheme Procedure: eof-object? x -- C Function: scm_eof_object_p (x) Return =E2=80=98#t=E2=80=99 if X is an end-of-file object, or =E2=80= =98#f=E2=80=99 otherwise. However, eof-object? is not exported by (ice-9 binary-ports): scheme@(guile-user)> (@ (ice-9 binary-ports) eof-object?) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Unbound variable: eof-object? But it is imported from (ice-9 ports): scheme@(guile-user) [1]> (@ (ice-9 ports) eof-object?) $1 =3D # Could an appropriate export be added to (ice-9 binary-ports)? Or the manual adjusted to note you need to import (ice-9 ports) to get eof-object? Greetings, Maxime --=-53J/lGJcp0K5eGP2TH6y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYODHZRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tn4AQDBUcDlwsAUbsAoLCMH8Ez2qgfW s/qke9c9cjEHW3cNNgD/aW1uScBiipOrEwxHr1Z0yUNXDLlzTEl67T/26VxUGwo= =4s3z -----END PGP SIGNATURE----- --=-53J/lGJcp0K5eGP2TH6y-- From unknown Sat Jun 14 05:29:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49363: eof-object? is not exported from (ice-9 binary-ports) Resent-From: Linus =?UTF-8?Q?Bj=C3=B6rnstam?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 04 Jul 2021 05:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49363 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: "Maxime Devos" , 49363@debbugs.gnu.org Received: via spool by 49363-submit@debbugs.gnu.org id=B49363.162537809520496 (code B ref 49363); Sun, 04 Jul 2021 05:55:01 +0000 Received: (at 49363) by debbugs.gnu.org; 4 Jul 2021 05:54:55 +0000 Received: from localhost ([127.0.0.1]:40324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzv5j-0005KW-9n for submit@debbugs.gnu.org; Sun, 04 Jul 2021 01:54:55 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzv5g-0005KH-K0 for 49363@debbugs.gnu.org; Sun, 04 Jul 2021 01:54:53 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BEDBB5C0070; Sun, 4 Jul 2021 01:54:46 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Sun, 04 Jul 2021 01:54:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veryfast.biz; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm3; bh=8rH1B YihAjxYsx4fBy7RWLJF1l1bw9z4QjoOaqw7SAI=; b=Qsnx1k1h/quJaiQbxxwT+ Ag22es4bFgP/H7ECDKBbuNNsigRnI7Yk0JAIhNAJboSQynQodGtrSKvbrgVdOcsy bxfYfJ5lbyJWLbcPJbnY0i/nkK5sRzEx9O46ykw98mlM1s8Plb3CL4V6AWDRp06+ IKfPUmUh8QYynIIGLO6j7U3vzH5yTaf2IlAQ+FY/GG+y6QCzGzqzJqaxTZvrR6VI fKrdM+RiE/eIIqCuqi37c5RGLiBQKdmqCCW8Lobw/muiKulLOB+dV8q2kdpUt/kM rCAwFtEAP1iwKc7cu/EDPijg1uyOmBZBLCAj0CPT81jRHRGgjgTTXGEsJfPzwgEo A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=8rH1BYihAjxYsx4fBy7RWLJF1l1bw9z4QjoOaqw7S AI=; b=AoCVilvuYczDtzedfsgRhvdLf8G+KimAisTG/cbcPGAACRSfcWyiicDAG NSiTlwTVdJvUVYQXAn8uWKUn8eXUfprzHJnjatY6N+ezsYVrAb9pjhh1ytFR8wKO biLUaTfWK0tLUOS1+YGPilDSTCLk4EJ17BAK7maFeangzIHINs3tQyFTyLsvcjH5 iA4NdgliQmkSNGdlmasjS+14tEQeVuxnjbOWG/SgpiMZzUcnIylyVFMdpt1WrfQ4 vybYwAnuzTS9S0Ejvf2NKMxzXy6/cw1qyHZtJtnDGdRXHt+6ks3qOfZiii2B1f/B BT8kzUqiR3gZV7pUNL4VQuEMWC7hg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejuddgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpefnihhn uhhspgeujhpnrhhnshhtrghmuceolhhinhhushdrsghjohhrnhhsthgrmhesvhgvrhihfh grshhtrdgsihiiqeenucggtffrrghtthgvrhhnpeetvdeuteehueektefhuddvjeelteff uedvvdeuudeiuedvtedtueehhedvjeeiffenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehlihhnuhhsrdgsjhhorhhnshhtrghmsehvvghrhihf rghsthdrsghiii X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 67D41AC0073; Sun, 4 Jul 2021 01:54:46 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-530-gd0c265785f-fm-20210616.002-gd0c26578 Mime-Version: 1.0 Message-Id: In-Reply-To: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> References: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> Date: Sun, 04 Jul 2021 07:54:25 +0200 From: Linus =?UTF-8?Q?Bj=C3=B6rnstam?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Isn't eof-object? available in the default environment? --=20 Linus Bj=C3=B6rnstam On Sat, 3 Jul 2021, at 22:24, Maxime Devos wrote: > According to the manual: >=20 > 6.12.2 Binary I/O > ----------------- >=20 > [...] > To use these routines, first include the binary I/O module: >=20 > (use-modules (ice-9 binary-ports)) >=20 > [...] > The end-of-file object is unlike any other kind of object: it=E2=80= =99s not a > pair, a symbol, or anything else. To check if a value is the > end-of-file object, use the =E2=80=98eof-object?=E2=80=99 predicate. >=20 > -- Scheme Procedure: eof-object? x > -- C Function: scm_eof_object_p (x) > Return =E2=80=98#t=E2=80=99 if X is an end-of-file object, or =E2= =80=98#f=E2=80=99 otherwise. >=20 > However, eof-object? is not exported by (ice-9 binary-ports): >=20 > scheme@(guile-user)> (@ (ice-9 binary-ports) eof-object?) > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > Unbound variable: eof-object? >=20 > But it is imported from (ice-9 ports): >=20 > scheme@(guile-user) [1]> (@ (ice-9 ports) eof-object?) > $1 =3D # >=20 > Could an appropriate export be added to (ice-9 binary-ports)? > Or the manual adjusted to note you need to import (ice-9 ports) > to get eof-object? >=20 > Greetings, > Maxime >=20 > Attachments: > * signature.asc From unknown Sat Jun 14 05:29:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49363: eof-object? is not exported from (ice-9 binary-ports) Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 04 Jul 2021 11:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49363 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Linus =?UTF-8?Q?Bj=C3=B6rnstam?= , 49363@debbugs.gnu.org Received: via spool by 49363-submit@debbugs.gnu.org id=B49363.16253993261666 (code B ref 49363); Sun, 04 Jul 2021 11:49:01 +0000 Received: (at 49363) by debbugs.gnu.org; 4 Jul 2021 11:48:46 +0000 Received: from localhost ([127.0.0.1]:40443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m00cA-0000Qo-Jr for submit@debbugs.gnu.org; Sun, 04 Jul 2021 07:48:46 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:58362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m00c9-0000Qf-Ap for 49363@debbugs.gnu.org; Sun, 04 Jul 2021 07:48:45 -0400 Received: from [172.20.10.4] ([188.189.171.172]) by andre.telenet-ops.be with bizsmtp id Qzoj250023jXkZ001zojfX; Sun, 04 Jul 2021 13:48:44 +0200 Message-ID: <99d8d25a5c04d9333e3bb8efd153a3a15902dea4.camel@telenet.be> From: Maxime Devos Date: Sun, 04 Jul 2021 13:48:42 +0200 In-Reply-To: References: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-hXHXWb0YQ3gYPl1v8is4" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1625399324; bh=hQaK1MinbV0nbrKAJeePH4Vr4qQPbQTQ6XQgW/j5xLU=; h=Subject:From:To:Date:In-Reply-To:References; b=rrIl92aKng0WMGbk75BeFi3/ktxjHHpk9GeKqsOtg/cNGB31HCs1hURWXZjHSjp4A HVnGU2+Va4MvJqG484fu8l3XDxVkVRHpiNXSUZTZ6AsEHpDEj9DM4A+VQc/0laI8Yx gLNTPoK7TXyUTIjKCi9L/4uFfRJrtXMT5NbBPxmCM+ZPqpdWZoezVuItE8Z3PuPvmh yt59zbvRPlZbWu1Nj4U7g3dtoPrFZRCKviv0lUYPoKAu3Go9PB++xzBHzAnXKeavBW vmGe+ItMiRauvUukwCSFACf0BtP+BFw6FtwIT8Vg+1/EpPaXoU+aVNVN0JMjXnxG7j 6ig1d1GKvNxCA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-hXHXWb0YQ3gYPl1v8is4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Linus Bj=C3=B6rnstam schreef op zo 04-07-2021 om 07:54 [+0200]: > Isn't eof-object? available in the default environment? Yes, but I use (define-library ...) and (library ...) forms instead of (define-module (...) ...) forms. When using define-library or library, the =E2=80=98default=E2=80=99 environment is ign= ored. I suppose I should import 'eof-object?' from (rnrs io ports) as I am using RnRS library forms. Still, this seems a bug in (ice-9 binary-ports) or the documentation and easy to fix.=20 Greetings, Maxime.=20 --=-hXHXWb0YQ3gYPl1v8is4 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+4iGRcl7gUCYOGgGhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7o9tAP9p89incVA68rO/TkMfHj3q+Xxr rwdkLRc6dA/vriz4fAEA6TFT52WGm7JOqy5G0wrnu7isRQ4tzdAQVklWT29wUQI= =mz7e -----END PGP SIGNATURE----- --=-hXHXWb0YQ3gYPl1v8is4--