develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #21321] local ${"FOO"} does not work

Thread Next
From:
Jarkko Hietaniemi
Date:
February 23, 2003 03:09
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
20030223110936.GH21778@kosh.hut.fi
On Sat, Feb 22, 2003 at 10:32:51PM -0000, Chip Salzenberg wrote:
> According to Mark-Jason Dominus:
> > Perhaps the best way to address this would be to extend the peephole
> > optimizer to optimize ${"COMPILE_TIME_CONSTANT"} to
> > $COMPILE_TIME_CONSTANT.
> 
> That would defeat a coder's deliberate choice to delay symbol table
> lookup until runtime, which can be a vitally important thing to do

How can delaying the symbol table lookup of ${"FOO"} until runtime
make any difference?  A "FOO" is a "FOO" is a "FOO".  (Unless you
going poking holes at the readonly constants of symbol tables using
XS, but then you are a depraved person anyway :-)

> when manupulating packages, especially for aliasing purposes.

I think you qualify as "one of the more twisted minds" Rafael
called for, so the stage is yours...

-- 
Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen

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