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


<masak> rakudo: say (16 < * < 66)(5) # tylercurtis++ discovered this
one, but didn't submit it as far as I can see
<p6eval> rakudo 928836: OUTPUT«1␤»
<masak> rakudo: say 16 < 5 < 66
<p6eval> rakudo 928836: OUTPUT«0␤»
* masak submits rakudobug

Discussion from <http://irclog.perlgeek.de/perl6/2010-08-21#i_2732723>:

<tylercurtis> rakudo: say (16 < * < 66)(5)
<p6eval> rakudo 0c374d: OUTPUT«1␤»
<tylercurtis> rakudo: say 16 < 5 < 66
<p6eval> rakudo 0c374d: OUTPUT«0␤»
<pmichaud> bug.
<pmichaud (the first, not the second)
<tylercurtis> Right. Known? If not, I'll search and submit it as well,
assuming it's not already reported.
<pmichaud> not known by me.
<pmichaud> so, submit.
<pmichaud> (and thanks)
<jnthn> I've not seen that beofre
<jnthn> Not sure how it's happening. :-S
<pmichaud> I suspect the WhateverCode builder is acting a little too soon.
<pmichaud> i.e., it's probably parsing it as   (16 < *) < 66
<pmichaud> which isn't the same.
<pmichaud> (i.e., it's creating a WhateverCode from the first <, and
using that to create another WhateverCode from the < 66
<jnthn> pmichaud: Oh, that soundss feasible.
<pmichaud> chaining altogether probably needs a rethink/rework in
Rakudo (and PCT)
<pmichaud> but  building a WhateverCode at the point of the infix is
likely "premature"

Reply via email to