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: doco ports verbiage Date: 12 Jun 2003 16:02:28 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87smqf8kcr.fsf@zagadka.ping.de> References: <877k7sm7uq.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 1055426993 20042 80.91.224.249 (12 Jun 2003 14:09:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2003 14:09:53 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 12 16:09:51 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 19QSlz-0005Cz-00 for ; Thu, 12 Jun 2003 16:09:51 +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 19QSoI-0007Ih-GA for guile-devel@m.gmane.org; Thu, 12 Jun 2003 10:12:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QSmt-0006nd-Mo for guile-devel@gnu.org; Thu, 12 Jun 2003 10:10:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QSk7-0005QW-0h for guile-devel@gnu.org; Thu, 12 Jun 2003 10:07:56 -0400 Original-Received: from [129.217.163.6] (helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.20) id 19QSg5-0003V6-Hs for guile-devel@gnu.org; Thu, 12 Jun 2003 10:03:45 -0400 Original-Received: (qmail 1257 invoked by uid 1000); 12 Jun 2003 14:02:29 -0000 Original-To: guile-devel@gnu.org In-Reply-To: <877k7sm7uq.fsf@zip.com.au> Original-Lines: 27 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:2531 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2531 Kevin Ryde writes: > For input, FILENAME must exist. For output, if FILENAME already > exists the behaviour is unspecified. What does Guile do when FILENAME already exists? We should document that. We can defer to "what the OS usually does when opening an existing file for writing." or more specifically "equivalent to fopen(FILENAME, "w")". > - Scheme Procedure: with-input-from-file filename thunk > - Scheme Procedure: with-output-to-file filename thunk > - Scheme Procedure: with-error-to-file filename thunk > > ... > > When THUNK returns, the port is closed and the previous setting of > the respective current port is restored. If THUNK does not return > (eg. if it throws an error), then what happens to the ports is > unspecified. I think we need to add that the respective current port is restored. The new port might not be closed, but the old port is restored as the current port. -- 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