scsh-users
[Top] [All Lists]

Re: Closing input string port causes error

To: ds26@gte.com
Subject: Re: Closing input string port causes error
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Fri, 13 Dec 2002 15:58:25 +0100
Cc: scsh-news@zurich.ai.mit.edu
>>>>> "Dorai" == Dorai Sitaram <ds26@goldshoe.gte.com> writes:

Dorai> When going from Scsh 0.6.1 to 0.6.2 I found a
Dorai> program of mine stop working with the error 

Dorai>   Error: returning zero values when one is expected
Dorai>   (values).

Dorai> Turns out this is caused by close-input-port on 
Dorai> a string input port (created with
Dorai> make-string-input-port).

This is a known bug in 0.6.2. The upcoming 0.6.3 release fixes this.

Dorai> On a larger note, is it acceptable in Scsh to not
Dorai> close string ports?  I remember some (non-Scsh) Scheme
Dorai> manuals saying string ports didn't need closing.

Yes, the current implementation doesn't do anything on closing a
string input port.


-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>