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

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

Thread Previous | Thread Next
July 16, 2010 07:24
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
Dave Mitchell <> wrote:
:However, for my opinions for the topic in hand...
:as regards tiedness, there are actually two orthogonal issues of
:correctness. The first is which order in which the two $a's in $a.$a are
:evaluated; the second is how many times $a is evaluated. It is quite
:possible for the order not to be defined, but still for the fact that $a
:is evaluated twice to be defined. For example, someone might be using tie
:to instrument the number of accesses to a variable.

This agrees with my thinking - I do not care a jot about the order of
evaluation for this case, but I would be unhappy about any change to
the number of times magic is invoked unless there were first strong
evidence presented that substantial improvements (to speed or something
else) would justify the change.


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