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


<masak> rakudo: say (1..10).list.fmt('%d', ' | ')
<p6eval> rakudo 08ef94: OUTPUT«1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10␤»
<masak> rakudo: say (1..10).fmt('%d', ' | ')
<p6eval> rakudo 08ef94: OUTPUT«Too many positional parameters passed;
got 3 but expected between 1 and 2␤  in method fmt [...]
<masak> should the latter work? discuss.
<masak> it seems to have worked in b.
<masak> b: say (1..10).fmt('%d', ' | ')
<p6eval> b 1b7dd1: OUTPUT«1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10␤»
<masak> yup.
<jnthn> Not sure
<masak> I vote "yes".
<masak> fwiw
<jnthn> Wonder where fmt lives in that case
<jnthn> b: say Range.^parents
<p6eval> b 1b7dd1: OUTPUT«Iterable()Cool()Any()Mu()␤»
<jnthn> b: say Iterable.^methods(:local)
<p6eval> b 1b7dd1: OUTPUT«itemNumericIntNumStrelemsfmtlist␤»
<masak> fmt!
<jnthn> aha, there's a fmt in iterable
<masak> huh.
<jnthn> nom: say Iterable.^methods(:local)
<p6eval> nom 08ef94: OUTPUT«elems infinite item Int Num Numeric Str␤»
* masak submits rakudobug
<jnthn> nom: say Range.^mro
<p6eval> nom 08ef94: OUTPUT«Range() Iterable() Cool() Any() Mu()␤»
<masak> at the very least, this is something that needs looking into.
<jnthn> Probably easy to patch.
<masak> very probably LHF, yes.
<jnthn> Provided we feel that b's answer is OK.
* masak does :)
<masak> otherwise I'll have to patch connect-4 in a way I don't like.
<jnthn> I agree it should work, and Iterable seems a sane enough place
to put it to me.
<jnthn> So no objections on my part if we make that work.

Reply via email to