From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: documentation.scm close files Date: 01 Jun 2003 23:02:34 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87znl1jytx.fsf@zagadka.ping.de> References: <87smrqxt3b.fsf@zip.com.au> <878yt55od2.fsf@zagadka.ping.de> <878yt3yig4.fsf@zip.com.au> <87znlfj54m.fsf@zip.com.au> <8765o3rosh.fsf@zagadka.ping.de> <87llwxnyvz.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054501368 5694 80.91.224.249 (1 Jun 2003 21:02:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2003 21:02:48 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 01 23:02:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MZyY-0001TQ-00 for ; Sun, 01 Jun 2003 23:02:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Ma04-0007NU-0C for guile-devel@m.gmane.org; Sun, 01 Jun 2003 17:04:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19MZzl-0007ML-LZ for guile-devel@gnu.org; Sun, 01 Jun 2003 17:04:01 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MZzk-0007LO-9Z for guile-devel@gnu.org; Sun, 01 Jun 2003 17:04:00 -0400 Original-Received: from mail.dokom.net ([195.253.8.218]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MZzK-0006qt-QA for guile-devel@gnu.org; Sun, 01 Jun 2003 17:03:34 -0400 Original-Received: from dialin.speedway43.dip132.dokom.de ([195.138.43.132] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 19Ma1C-0000SY-00 for guile-devel@gnu.org; Sun, 01 Jun 2003 23:05:30 +0200 Original-Received: (qmail 26378 invoked by uid 1000); 1 Jun 2003 21:02:34 -0000 Original-To: guile-devel@gnu.org In-Reply-To: <87llwxnyvz.fsf@zip.com.au> Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2470 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2470 Kevin Ryde writes: > Marius Vollmer writes: > > > > What about saying something about 'with-input-from', etc. > > That's probably the easiest way to ensure that ports are closed even > > in the case of errors. > > Except that with-input-from-file and call-with-input-file don't > guarantee to close on error, do they? :-) Yep, you are right! I was talking too fast. > Due to being let's not dynamic-wind of course, if I'm looking at the > right code in r4rs.scm. Presumably this is deliberate, so > continuations can be captured and still use the port. Yes. I really start to think that call/cc does more harm than good. It is perfect for self contained illustrations of computer science stuff, but can cause a lot of fuzziness in larger, multi module systems. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel