guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: documentation.scm close files


From: Marius Vollmer
Subject: Re: documentation.scm close files
Date: 01 Jun 2003 23:02:34 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Kevin Ryde <address@hidden> writes:

> Marius Vollmer <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]