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

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

Thread Previous | Thread Next
From:
Chip Salzenberg
Date:
February 22, 2003 14:32
Subject:
Re: [perl #21321] local ${"FOO"} does not work
Message ID:
20030222213108.GF3090@perlsupport.com
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
when manupulating packages, especially for aliasing purposes.
-- 
Chip Salzenberg         - a.k.a.  -        <chip@pobox.com>
         "It furthers one to have somewhere to go."

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