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

Re: Please shoot down this GC idea...

Thread Previous | Thread Next
From:
Branden
Date:
February 14, 2001 11:56
Subject:
Re: Please shoot down this GC idea...
Message ID:
OE7083alUohIi6YEFms00006fa5@hotmail.com
Simon Cozens wrote:
> On Wed, Feb 14, 2001 at 11:38:58AM -0800, Damien Neil wrote:
> >   sub do_stuff { ... }
> >
> >   {
> >     my $fh = IO::File->new("file");
> >     do_stuff($fh);
> >   }
> >
> > In this code, the compiler can determine that $fh has no active
> > references at the end of the block
> 
> No, it can't, but it can certainly put a *test* for not having references
> there.
> 

How can it do it without using ref-counts or spawning a full GC round?

- Branden


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