# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #75446]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75446 >


<masak> I've found a case where a line number is one-off. should I nopaste it?
<jnthn> masak: please
<masak> I don't think it's the fault of the new backtraces thing, to be honest.
<masak> more like a result of parsing or something.
<jnthn> Well, the other thing is that we don't have as many :node($/)s
in Actions.pm as we maybe should.
<jnthn> So could very well be some wins to be had by some careful
extra scattering of those.
<masak> http://gist.github.com/418990

(inlined here)

$ cat one-off
sub bar {
    pfff
}

bar

$ perl6 one-off
Could not find sub &pfff
in 'bar' at line 1:one-off
in main program body at line 6:one-off

<jnthn> masak: curious
<jnthn> masak: Does it get it right if you do pfff() ?
<jnthn> as in, add parens?
* masak tries
* jnthn had a test very much like that which got it right
<masak> no.
<jnthn> ok
<masak> maybe it sees the statement as starting on line 1, or something?
<jnthn> That's very possible.
<jnthn> I just thought that it'd been getting it right.
<jnthn> (I had a very similar test case...)
* jnthn plays spot the difference
<jnthn> masak: hmm, I agree it seems to be one off there.
* masak submits rakudobug
<jnthn> masak: Think it may be a Parrot fix.
<jnthn> masak: Thing is, the annotations in the PIR look correct.
<jnthn> Trying my first guess at a patch now.
<masak> I'll include that in the Rakudobug. :)

Reply via email to