Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 chilling in the Monastery: (5)
As of 2019-09-19 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (238 votes). Check out past polls.

    Notices?