[perl #111646] infix~ reports an arity of 2 even though it accepts 2

2012-03-09 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #111646] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111646 09:38 moritz nom: say infix:~.arity 09:38 +p6eval rakudo 4235df: OUTPUT«1␤»

Re: [perl #111646] infix~ reports an arity of 2 even though it accepts 2

2012-03-09 Thread Moritz Lenz
Golfed even further: 09:44 moritz nom: multi a($, $) { }; say a.arity 09:44 +p6eval rakudo 4235df: OUTPUT«1␤» Seems the arity calculation is generally a bit off Am 09.03.2012 09:41, schrieb Moritz Lenz (via RT): # New Ticket Created by Moritz Lenz # Please include the string: [perl

Re: [perl #111646] infix~ reports an arity of 2 even though it accepts 2

2012-03-09 Thread Moritz Lenz
Further analysis: the problem is that Signature.count counts the (|$) from the proto as a single positional. The obvious fix from http://moritz.faui2k3.org/tmp/arity.patch doesn't work, because List.munch then gets a Num argument, which blows up during unboxing.