Hi!
On Saturday, 30. December 2006 16:36, Jason Tackaberry wrote:
> On Sat, 2006-12-30 at 09:56 +0100, Dirk Meyer wrote:
> > Or do we close when we loose the reference?
>
> Correct.
<pedantic>Not 100%. ;-)</pedantic>
You close when the GC collects the object, which *may* be later than when
losing the reference. In this case, this does not matter at all, but that's
the reason why file-like objects should *always* have a close() method -
otherwise there would be no way to make sure that it gets closed at a certain
time.
Ciao, / /
/--/
/ / ANS
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel