New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with optional positional parameters in sub MAIN #1443
Comments
From heikki@mehtanen.fiHey, There seems to be problem with Rakudo handling optional positional Rakudo version: fresh git build on 2009/12/26 Code snippet: perl6 -e 'sub MAIN ($a, :$var) { say "a: $a, optional: $var"; }' param --var results into: Heikki Mehtänen |
From @moritzOn Wed Dec 16 07:36:01 2009, heikki@mehtanen.fi wrote:
If you declare :$var without a type, it expects a value. If you want to $ ./perl6 -e 'sub MAIN ($a, :$var) { say "a: $a, optional: $var"; }' $ ./perl6 -e 'sub MAIN ($a, Bool :$var) { say "a: $a, optional: $var"; However the fact remains that the error message (albeit different now ./perl6 -e 'sub MAIN ($a, :$var) { say "a: $a, optional: $var"; }' param |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzNow fixed in commit Toulouse-45-gbd134ec |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#71366 (status was 'resolved')
Searchable as RT71366$
The text was updated successfully, but these errors were encountered: