From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pierre Lairez Newsgroups: gmane.lisp.guile.user Subject: EOF as datum Date: Fri, 1 Jul 2016 11:44:16 +0200 Message-ID: <57763B70.8010006@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a553crF5aUlg425RtHal6XG13UVaVx3xR" X-Trace: ger.gmane.org 1467366298 22859 80.91.229.3 (1 Jul 2016 09:44:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2016 09:44:58 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 01 11:44:53 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bIv0B-000841-SQ for guile-user@m.gmane.org; Fri, 01 Jul 2016 11:44:48 +0200 Original-Received: from localhost ([::1]:60701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIv0B-0004xa-1D for guile-user@m.gmane.org; Fri, 01 Jul 2016 05:44:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIuzn-0004xJ-VB for guile-user@gnu.org; Fri, 01 Jul 2016 05:44:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIuzk-0007KH-62 for guile-user@gnu.org; Fri, 01 Jul 2016 05:44:23 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:36552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIuzj-0007Jw-VL for guile-user@gnu.org; Fri, 01 Jul 2016 05:44:20 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id f126so19225763wma.1 for ; Fri, 01 Jul 2016 02:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version; bh=XaO/sQlEjMPLxYV2p8p1j136ovtutpyLNq6CjtwmGYk=; b=txRJ3hbIe6xbx0WLJYSdE6NNIBIyiY0+UrMHJNjVq+dsecd125zT3nquX/5j34jslh Lkq9AtJ/4l46622NEuUrJ/zvr2HCgckVOJi2D2I8EeekaqkPQa771JrBU2o5rbMFN/72 QijWmUj2lSaBESrGWBx4bDgbL/k4bPNc0azvz9ZnRkaFKJCGaU9jLswhTROMyGKkEhSS CzPsoGeVHjyCPi0dpOwm8XOVY6qY2Hj7CofV9qXfq2ilGpRPAO2vOiUa/nOe0RRa/jQ8 /nXmNtDGtThRtOWbJ3AP2M4hpJsE5uS89M8L5/yRUzBrW61AFinPtP7+shaZlxIjGA4K RA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=XaO/sQlEjMPLxYV2p8p1j136ovtutpyLNq6CjtwmGYk=; b=BmNrfW5TuHStpBZFDI1TzUaPXBb4BZbqMqDFf2lbGNS65dzqlFkVskVo+2c3bJEdMp 7zZWaJqGDMUlbcjp48D20GpV2j5iIIxL+KFpapQKLuUJ0NDmmhAKWxUJw+31OzLbPZVk PTyevshzLFDnSsWuI6PrsCSO/d5+ult8HouZzPhsIZrsn1CtwtOyEy/WC3EeztOFPN5V /gpWsacBOYuJ3iAyxsTyaudgkVpqtU47kmcGCE2c6wB5tr6bfHXhkrcnbTKCTor8pMs7 RkaTehVe+VPh09DRaLTrnk9htYHtdi0ly5LRwoC7feCXXrlsWEWuLrlHA8KVZT5AqyqN a+Mw== X-Gm-Message-State: ALyK8tI0GdsybD9ysCg785to5XjGEsi4lsmwVsdoF4QNuBhTdjy2Nji1Y0iwRCnMfOUMpQ== X-Received: by 10.194.2.44 with SMTP id 12mr2613739wjr.61.1467366257550; Fri, 01 Jul 2016 02:44:17 -0700 (PDT) Original-Received: from [130.149.15.144] (ifmnb144.math.tu-berlin.de. [130.149.15.144]) by smtp.gmail.com with ESMTPSA id qg5sm703288wjc.13.2016.07.01.02.44.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 02:44:16 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:12714 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --a553crF5aUlg425RtHal6XG13UVaVx3xR From: Pierre Lairez To: guile-user@gnu.org Message-ID: <57763B70.8010006@gmail.com> Subject: EOF as datum Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear all, I understand why we cannot use (eof-object) in a =E2=80=9Ccase=E2=80=9D s= tatement. For example, this will not run as it is meant: (case (get-char port) (((eof-object)) ...) (else ...)) Is is possible to define something like #eof that will be datum and make the following work as expected? (case (get-char port) ((#eof) ...) (else ...)) That would simplify (a little, I admit it is not a great deal) the processing of input data. One way I see it to define say ##eof thanks to the hash extend mechanism. Do I miss something simpler? Best, Pierre --a553crF5aUlg425RtHal6XG13UVaVx3xR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXdjtwAAoJEBYslBlrVgivaO8H/1b6zdBFejFMDNbbYQEnRRyM +i8W9sFQ9sahRyxLJV1ursA+h4McIeT+fPUSNWZeWdfOo2knqJdCkY9zdJfyWo+E O7Fum/GUJEnTgzp+UIexQ49AQdMTJt7f7KaWyza+gNeU1QepGwQmWddMoozpYZK8 ElAOdu6YzA7ycfZWSjLXUVFCz/l/dMIerhkgTE2/dNJ82lcWlSeLsN7MVJZRuCu8 Jx+12X5ThRDwwAtCv9OAjjwIlkN0AuWtE/30csxdC+8D495/WPPSp3tsx4Nrmm0b Kx5hh9p/C9pYVPwdcV5F9hMtmVYgf6PwFLkSwBEhFJAdhiydU9TM8L94No8TtD8= =YZOy -----END PGP SIGNATURE----- --a553crF5aUlg425RtHal6XG13UVaVx3xR--