I think my first "bug report" was a misunderstanding. Named parameters and slurpy array positional parameters just don't mix.
Here is the code that should be in the test case. It's in direct contradiction to a test case that's already being used. In other words, the other test is probably wrong and this one should replace it, rather than putting it in t/pugsbugs.
Since $x is flagged "+" (a named parameter only), I don't think it should bind to a positional parameter. It should get the default instead.
sub foo (+$x = 3) { $x }
is(foo(4), 3, "a positional parameter should not bind to a forced name
+d parameter");
I am not yet on the mailing list, IRC, or on the commit rights list. Eventually I would like to be, but for now I'd just like to turn in a bug report.
|