scsh-users
[Top] [All Lists]

Closing input string port causes error

To: scsh-news@zurich.ai.mit.edu
Subject: Closing input string port causes error
From: ds26@goldshoe.gte.com (Dorai Sitaram)
Date: 13 Dec 2002 14:45:55 GMT
Organization: GTE Laboratories Incorporated
Reply-to: ds26@gte.com
When going from Scsh 0.6.1 to 0.6.2 I found a
program of mine stop working with the error 

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

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

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

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