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
required named before optional positional parameter produces confusing error message #2070
Comments
From @jkeenanThe New York City Rakudo Star study group is working its way through At bottom of page 34, we see: sub design-ice-cream-mixture(:$name!, $base = 'Vanilla') { design-ice-cream-mixture(name => 'Plain'); FAILS with: ===SORRY!=== However, if we but 'base' before 'name' in the signature, it works: sub design-ice-cream-mixture($base = 'Vanilla', :$name!) { design-ice-cream-mixture(name => 'Plain'); This works. Can anyone confirm that it is merely the code exammple on page 34 Thank you very much. kid51 |
From @masakOn Sat Aug 14 11:33:18 2010, jkeen@verizon.net wrote:
Confirmed: the error message is wrong, but it's right in that one cannot put this kind of thing |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzThanks for the report, I've now fixed the example in the book. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77220 (status was 'resolved')
Searchable as RT77220$
The text was updated successfully, but these errors were encountered: