From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: documentation.scm close files Date: Sat, 24 May 2003 07:20:32 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87llwxnyvz.fsf@zip.com.au> 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053725369 18849 80.91.224.249 (23 May 2003 21:29:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 May 2003 21:29:29 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 23 23:29:27 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 19JK6Q-0004te-00 for ; Fri, 23 May 2003 23:29:27 +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 19JJyp-00076d-NF for guile-devel@m.gmane.org; Fri, 23 May 2003 17:21:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JJyP-0006Xg-F1 for guile-devel@gnu.org; Fri, 23 May 2003 17:21:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JJy1-0005xs-QQ for guile-devel@gnu.org; Fri, 23 May 2003 17:20:47 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JJxz-0005nx-No for guile-devel@gnu.org; Fri, 23 May 2003 17:20:44 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h4NLKfPB014268 for ; Sat, 24 May 2003 07:20:41 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h4NLKfQg025360 for ; Sat, 24 May 2003 07:20:41 +1000 (EST) Original-Received: from localhost (ppp126.dyn228.pacific.net.au [203.143.228.126]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h4NLKdYZ022916 for ; Sat, 24 May 2003 07:20:40 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19JJxp-0000bm-00; Sat, 24 May 2003 07:20:33 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never In-Reply-To: <8765o3rosh.fsf@zagadka.ping.de> (Marius Vollmer's message of "22 May 2003 17:20:30 +0200") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) 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:2428 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2428 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? :-) 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. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel