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
Ranges can be modified through .bounds in Rakudo; supposed to be immutable #4467
Comments
From @smlsRanges are supposed to be immutable value types, and they do work that way w.r.t object identity comparison: ➜ my $r = 5..10; However, the .bounds method returns item containers which, when assigned to, affect the original Range object: ➜ $r.bounds[1] = 8; The .bounds method should probably be made to decontainerize its return values, to fix this. |
From @lizmatFixed with 7814349, tests added with d649801, can be closed
|
The RT System itself - Status changed from 'new' to 'open' |
From @usev6I adjusted the test with commit 17d9681 so that it passes on JVM as well. I'm closing this ticket as 'resolved'. [Please note: The change to the test was needed because X::Assignment::RO didn't get the typename right on JVM. That has nothing to do with .bounds as shown here: $ perl6-m -e '2 = 3' $ perl6-j -e '2 = 3' |
1 similar comment
From @usev6I adjusted the test with commit 17d9681 so that it passes on JVM as well. I'm closing this ticket as 'resolved'. [Please note: The change to the test was needed because X::Assignment::RO didn't get the typename right on JVM. That has nothing to do with .bounds as shown here: $ perl6-m -e '2 = 3' $ perl6-j -e '2 = 3' |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125791 (status was 'resolved')
Searchable as RT125791$
The text was updated successfully, but these errors were encountered: