Branden wrote: > John Porter wrote: > > > ...and trigger a GC that will get rid of the arg. > > > > No. Perl decides for itself when to do GC. > > The idea is to *allow* a programmer to explicitly destroy an object, for > better (and sooner) resource disposal. The programmer wouldn't have to do it > (and wouldn't do it most the time), but if he knows he uses many resources > and he would like to be nice, he *could* do it (not meaning he would have to > do it either...). Obviously "freeing" an object marks it as GC'able. It should *NOT* "trigger" a GC. If the user wants to explicitly cause GC (and the language allows), then she can put that in too. Freeing should NOT trigger a GC; although of course it's a logical point at which perl may decide to do a GC anyway. -- John Porter
- Re: Garbage collection (was Re: JWZ on s/Java/Perl/) David Mitchell
- Re: Garbage collection (was Re: JWZ on s/Java/Per... Branden
- Re: Garbage collection (was Re: JWZ on s/Java... James Mastros
- Re: Garbage collection (was Re: JWZ on s/... John Porter
- Re: Garbage collection (was Re: JWZ o... James Mastros
- Re: Garbage collection (was Re: ... Branden
- Re: Garbage collection (was ... James Mastros
- Re: Garbage collection (was Re: JWZ o... Branden
- Resource Management ? John Porter
- Resource Management ? Elizabeth Mattijsen
- Re: Garbage collection (was Re: ... abigail
- Re: Garbage collection (was ... Branden
- Re: Garbage collection (... Damien Neil
- Re: Garbage collection (was Re: JWZ on s/... Branden
- Re: Garbage collection (was Re: JWZ o... James Mastros
- Re: Garbage collection (was Re: JWZ on s/Java... Dan Sugalski
- Re: Garbage collection (was Re: JWZ on s/... Branden
- Re: Garbage collection (was Re: JWZ o... abigail
- Re: Garbage collection (was Re: ... Simon Cozens