develooper Front page | perl.perl6.internals | Postings from February 2001

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 14, 2001 12:01
Subject:
Re: Garbage collection (was Re: JWZ on s/Java/Perl/)
Message ID:
5.0.2.1.0.20010214145901.01b06628@24.8.96.48
At 07:44 PM 2/14/2001 +0000, Simon Cozens wrote:
>On Wed, Feb 14, 2001 at 08:32:41PM +0100, abigail@foad.org wrote:
> > > DESTROY would get called twice, which is VERY BAD.
> >
> > *blink*
> > It is? Why?
> > I grant you it isn't the clearest way of programming, but "VERY BAD"?
>
>package NuclearReactor::CoolingRod;
>
>sub new {
>     Reactor->decrease_core_temperature();
>     bless {}, shift
>}
>
>sub DESTROY {
>     Reactor->increase_core_temperature();
>}

Time to snag some bits from the Java license agreement.

"...this software is not meant for...aircraft control...nuclear 
reactors...medical equipment..."

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About