Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2020-11-30 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?