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


<masak> rakudo: say ~(1, 1, &[+] ... *)[^10]
<p6eval> rakudo 11cbd4: OUTPUT«get_attr_str() not implemented in class
'Perl6MultiSub'␤  in 'infix:<...>' at line 1 [...]
* masak submits rakuodbug
<colomon> rakudo: say ~(1, 1, &[+] ... 50)
<p6eval> rakudo 11cbd4: OUTPUT«get_attr_str() not implemented in class
'Perl6MultiSub'␤  in 'infix:<...>' at line 1 [...]
<colomon> rakudo: say ~(1, 1, *+* ... 50)
<p6eval> rakudo 11cbd4: OUTPUT«1 1 2 3 5 8 13 21 34␤»
<moritz_> I guess it's related to &[+] referring to a multi
<colomon> moritz_: yes
<colomon> I'm not sure the &[+] can actually work here.
<masak> why not?
<colomon> ... needs to know how many arguments the closure takes.
<masak> ah.
<colomon> how many does &[+] take?
<masak> two.
<colomon> or zero
<masak> zero!?
<moritz_> for [+] to return 0
<colomon> rakudo: say infix:<+>()
<p6eval> rakudo 11cbd4: OUTPUT«0␤»
<masak> huh.
<TimToady> &[+] is specced to choose the 2-arg case
<masak> that settles it. thanks.
<colomon> there's the bug, then.  :)
<TimToady> S03:4686

Reply via email to