Python vs Java garbage collection?

Erik Max Francis max at alcyone.com
Mon Dec 23 19:07:40 EST 2002


Robert Oschler wrote:

> Sorry for the confusion, I said auto_ptr when I meant shared_ptr which
> is
> reference counted.

I brainfarted your brainfart as well; I was thinking of
boost::shared_ptr or something similar rather than std::auto_ptr, but
just mumbled the same words you did.  Oops.

I suppose one could try to make the save that std::auto_ptr is a form of
reference counting, it's just one in which it only counts zero or one
references :-).

-- 
 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