Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] faq? gc'd channels & finalize?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-03-19 (02:57)
From: Chris Hecker <checker@d...>
Subject: [Caml-list] faq? gc'd channels & finalize?

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.


To unsubscribe, mail  Archives: