gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] Re: Seg fault in write-string.11


From: Sam Steingold
Subject: [Gcl-devel] Re: Seg fault in write-string.11
Date: Tue, 24 Feb 2004 15:55:13 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt)

> * Camm Maguire <address@hidden> [2004-02-24 12:46:28 -0500]:
>
>> closing a TWO-WAY-STREAM should not recurse.
>
> How else does one close this stream than by closing first the input,
> and then the output, components?  As these can be of any type,
> recursion seems the most logical in this case.  How does clisp do
> this?

As per ANSI,
<http://www.lisp.org/HyperSpec/Issues/iss052-writeup.html>
we close just the composite stream, not its components.
these must be closed separately and individually.

this is quite logical: if closing a composite stream affects its
components, then if such components are shared between composite
streams, closing one of them will break all the others.

look at closing as if it were garbage collection: when you are
collecting an object, you are not necessarily collecting its slots
which might refer to a live object.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Old Age Comes at a Bad Time.




reply via email to

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