From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Linus =?UTF-8?Q?Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#49363: eof-object? is not exported from (ice-9 binary-ports) Date: Sun, 04 Jul 2021 07:54:25 +0200 Message-ID: References: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17558"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-530-gd0c265785f-fm-20210616.002-gd0c26578 To: "Maxime Devos" , 49363@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun Jul 04 07:55:08 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 1lzv5v-0004N6-N8 for guile-bugs@m.gmane-mx.org; Sun, 04 Jul 2021 07:55:08 +0200 Original-Received: from localhost ([::1]:52608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzv5u-0007pd-JY for guile-bugs@m.gmane-mx.org; Sun, 04 Jul 2021 01:55:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzv5q-0007pS-6j for bug-guile@gnu.org; Sun, 04 Jul 2021 01:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzv5p-00071q-TD for bug-guile@gnu.org; Sun, 04 Jul 2021 01:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzv5p-0005Ku-RI for bug-guile@gnu.org; Sun, 04 Jul 2021 01:55:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 49363-submit@debbugs.gnu.org id=B49363.162537809520496 (code B ref 49363); Sun, 04 Jul 2021 05:55:01 +0000 Original-Received: (at 49363) by debbugs.gnu.org; 4 Jul 2021 05:54:55 +0000 Original-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 Original-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 Original-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) Original-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: Original-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 In-Reply-To: <8947442579e3360304579b254f66f313978dd405.camel@telenet.be> 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:10135 Archived-At: 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