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
LTA error message when passing to a typed slurpy array parameter in Rakudo #2811
Comments
From @masak<seldon> Can slurpy parameters not be typed? I'm having trouble with |
From @edwinst$ ./perl6 -e 'sub foo(Int *@ints) { say @ints }; foo(1)' $ ./perl6 --version |
From sohtil@gmail.comI just noticed this duplicates RT #113964. Please merge. |
The RT System itself - Status changed from 'new' to 'open' |
From sohtil@gmail.comNote that typed slurpy arrays are used in the spec in several places (see below). $ ack -a '\w\s+\*@' # slightly edited S06-routines.pod S29-functions.pod S32-setting-library/Containers.pod S32-setting-library/IO.pod specs at: |
The RT System itself - Status changed from 'new' to 'open' |
From sohtil@gmail.comRT #115312 duplicates this bug. |
From @usev6The error message looks adequate now: $ perl6 -e 'sub foo(Int *@ints) {}' But as it was pointed out above typed slurpy arrays are used in the spec in several places. There are several skipped tests for typed slurpy params in S06-signature/slurpy-params.t. Should this ticket be closed (with a test for the current error message)? |
1 similar comment
From @usev6The error message looks adequate now: $ perl6 -e 'sub foo(Int *@ints) {}' But as it was pointed out above typed slurpy arrays are used in the spec in several places. There are several skipped tests for typed slurpy params in S06-signature/slurpy-params.t. Should this ticket be closed (with a test for the current error message)? |
From @usev6I found this Pull Request for rakudo, which implemented the error message "Slurpy positionals with type constraints are not supported": So I guess, the skipped tests for slurpy positionals in S06-signature/slurpy-params.t should be replaced and the examples in the design documents should be removed as well. Any opinions? |
1 similar comment
From @usev6I found this Pull Request for rakudo, which implemented the error message "Slurpy positionals with type constraints are not supported": So I guess, the skipped tests for slurpy positionals in S06-signature/slurpy-params.t should be replaced and the examples in the design documents should be removed as well. Any opinions? |
From @jnthnOn Wed Oct 08 12:36:34 2014, bartolin@gmx.de wrote:
In Perl 6.christmas, we won't support typed slurpies. I've updated S06 to note they are a conjectural feature, and updated the tests to reflect this (and also to check for the typed exception the compiler throws in this case). |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#113964 (status was 'resolved')
Searchable as RT113964$
The text was updated successfully, but these errors were encountered: