Python vs Java garbage collection?
Erik Max Francis
max at alcyone.com
Mon Dec 23 17:34:24 EST 2002
"Martin v. Löwis" wrote:
> In general, C++ makes no such guarantee. If I do
>
> Foo *foo = new Foo;
>
> and never mention foo in a delete statement, the Foo destructor won't
> be
> called.
As he already said, he was referring to destructors in conjunction with
reference counting entities in C++, such as std::auto_ptr.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ If you think you're free, there's no escape possible.
\__/ Baba Ram Dass
Bosskey.net: Return to Wolfenstein / http://www.bosskey.net/rtcw/
A personal guide to Return to Castle Wolfenstein.
More information about the Python-list
mailing list