develooper Front page | perl.perl5.porters | Postings from December 2013

Re: [perl #119593] Bleadperl v5.19.3-296-gffdb8b1 breaksBAREFOOT/Test-File-1.34.tar.gz

Thread Next
From:
Zefram
Date:
December 23, 2013 12:59
Subject:
Re: [perl #119593] Bleadperl v5.19.3-296-gffdb8b1 breaksBAREFOOT/Test-File-1.34.tar.gz
Message ID:
20131223125947.GQ21945@fysh.org
bulk88 via RT wrote:
>I did think of something, what if a single bit in the op struct indicated
>if this op is on a new line, or previous line.

Unworkable.  With conditionals, multiple paths can be taken through the
ops of a statement, leading to disagreements about the line an op is on.
(Similar to existing issues about an op being reached from more than one
COP, but worse in that it'll produce totally bogus line numbers rather
than just the correct line number for the wrong code.)  You also run
into trouble if there's a blank line between consecutive ops, and where
the op execution sequence goes back a line, and where a #line directive
ascribes a totally different line number to the next op, and where a
statement is split between files.

-zefram

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