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.bugs Subject: bug#49363: eof-object? is not exported from (ice-9 binary-ports) Date: Sat, 03 Jul 2021 22:24:10 +0200 Message-ID: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-53J/lGJcp0K5eGP2TH6y" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 To: 49363@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Jul 03 22:31:16 2021 Return-path: Envelope-to: guile-bugs@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 1lzmIG-0002Io-Cu for guile-bugs@m.gmane-mx.org; Sat, 03 Jul 2021 22:31:16 +0200 Original-Received: from localhost ([::1]:40710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzmIE-00059Q-RG for guile-bugs@m.gmane-mx.org; Sat, 03 Jul 2021 16:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzmI2-00059B-HG for bug-guile@gnu.org; Sat, 03 Jul 2021 16:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzmI2-0004kV-6Y for bug-guile@gnu.org; Sat, 03 Jul 2021 16:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzmI2-0003eQ-1s for bug-guile@gnu.org; Sat, 03 Jul 2021 16:31:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162534425414019 (code B ref -1); Sat, 03 Jul 2021 20:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 20:30:54 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10134 Archived-At: --=-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--