guile-devel
[Top][All Lists]
Advanced

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

Re: lazy sweeping.


From: Michael Livshin
Subject: Re: lazy sweeping.
Date: Tue, 30 Jul 2002 15:10:22 +0300
User-agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Honest Recruiter, i686-pc-linux)

Han-Wen <address@hidden> writes:

> oh, btw, I noticed that only ports are flushed on exit of GUILE (gc.c
> - onexit ()). The manual talks about "freeing resources" for the smob
> free function. I believe that is inaccurate: free is only for freeing
> memory. Stuff like closing files should happen in an explicitly called
> function, for the free() might never get called at then end.

why not free resources in smob free() too?  think of it as of a safety
net.

but of course freeing external resources explicitly is preferable.

-- 
A CONS is an object which cares.
                -- Bernie Greenberg.





reply via email to

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