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

RE: Should MY:: be a real symbol table?

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
September 4, 2001 05:58
Subject:
RE: Should MY:: be a real symbol table?
Message ID:
5.1.0.14.2.20010904085445.02143a98@pop.sidhe.org
At 01:44 PM 9/4/2001 +0100, Dave Mitchell wrote:
>Dan Sugalski <dan@sidhe.org> wrote:
> > This also makes scope entry and exit costlier, since you need to make a
> > savestack entry and restore, respectively, for each lexical. I don't think
> > it'd be a win, even if closures weren't getting in your way.
>
>although to be fair, the current run-time action of my() is to push a
>"remember to clear me at the the end" note onto the savestack - not
>quite as much work as pushing the old SV onto the savestack and
>allocating a new SV, but work nevertheless.

Sure. Parrot'll have a 'clean out the pad' operation at the end of a scope 
to do a quick sweep for DESTROYable variables, so there's something 
similar. Still extra time, though.

					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