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

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

Thread Next
Jarkko Hietaniemi
February 23, 2003 03:09
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
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
> 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 <> "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About