[r6rs-discuss] [Formal] I/O: `call-with-port' and multiple returns

From: Michael Sperber <sperber>
Date: Mon Feb 26 05:03:49 2007

ludovic.courtes_at_laas.fr (Ludovic Court?s) writes:

> Hi,
>
> Michael Sperber <sperber_at_informatik.uni-tuebingen.de> writes:
>
>> R5.92RS does say:
>>
>>>> If proc returns, then the port is closed automatically and the
>>>> values returned by proc are returned.
>>
>> Could you be more specific as to why this isn't clear?
>
> I was just suggesting that it might be worth explicitly mentioning the
> behavior of `call-with-port' in the presence of multiple returns, unless
> it should be obvious given the sentence you quoted above (it wasn't to
> me).

It says that the port is closed on the first return. Presumably, it's
closed on every return---but `close-port' is idempotent, so that
doesn't really matter.

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Mon Feb 26 2007 - 05:03:47 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC