develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76438] peephole optimiser could prune more dead code

Thread Previous | Thread Next
David Golden
July 11, 2010 12:40
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
On Sat, Jul 10, 2010 at 7:36 AM, James Mastros <> wrote:
> I do wonder, sometimes, if we worry entirely too much about just when
> tie and overload calls or done.  Would it break actual real-world code
> to not retrieve the value of $a (tie) or not boolify it (overload)
> when the value will be thrown away anyway?

I think explicitly clarifying that side effects (like magic) will not
happen if the compiler optimizes a block or expression is a good idea.

Then maybe we could use the less pragma when that isn't desired.  (
e.g. "use less 'optimization'" )

-- David

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