On 2/24/07, Kon Lovett <[EMAIL PROTECTED]> wrote:
On Feb 24, 2007, at 4:40 PM, Peter Keller wrote:
> If you need to do this type of thing, unwind-protect is your
> friend. There
> is no guarantee that the finalizer will be called when it *must*
> be called in order not to run out of file descriptors when you need
> something. Unwind-protect is the way to do this type of clean up.

Yes, or use the 'call-with-*-file' & 'with-*-file' procedures.
Automatic system resource release upon GC is nice but not R5RS behavior.

All good points -- thanks.

Graham


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to