Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] faq? gc'd channels & finalize?
@ 2001-03-19  2:58 Chris Hecker
  2001-03-19 10:49 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Hecker @ 2001-03-19  2:58 UTC (permalink / raw)
  To: caml-list


This must be an FAQ, but I can't find anything about it in the FAQ, the docs, and only a few messages on the caml list early last year...

File handles (channels) are not closed on garbage collection, right (my tests indicate they're not)?  Why is this (just because no guarantees can be made on when objects will be finalized)?  The docs warn against using finalization routines, so it seems like manually doing it (or using a wrapper function, which then has to catch and reraise exceptions) is the only way.

Chris

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-19 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-19  2:58 [Caml-list] faq? gc'd channels & finalize? Chris Hecker
2001-03-19 10:49 ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox