Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

tall_man's scratchpad

by tall_man (Parson)
on Jun 13, 2004 at 17:39 UTC ( #366280=scratchpad: print w/replies, xml ) Need Help??

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.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2023-12-10 10:04 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (39 votes). Check out past polls.