Skip to content
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

Issue 1305: Throw exception on attempted assign to range pos #1343

Merged
merged 1 commit into from Dec 27, 2017

Conversation

jstuder-gh
Copy link
Contributor

Range is immutable as mentioned in the spec
https://github.com/perl6/specs/blob/master/S02-bits.pod#immutable-types

Assignment failed before, but this provides a clearer error message.

@zoffixznet
Copy link
Contributor

This can be just a single, non-multi method, no? method ASSIGN-POS(Range:D: |) { … }

Range is immutable as mentioned in the spec
<https://github.com/perl6/specs/blob/master/S02-bits.pod#immutable-types>

Assignment failed before, but this provides a clearer error message.
Addresses [Issue rakudo#1305](rakudo#1305).
@jstuder-gh
Copy link
Contributor Author

You're right. I've modified the PR.

@lizmat lizmat merged commit c10b8fe into rakudo:master Dec 27, 2017
Altai-man added a commit that referenced this pull request Sep 25, 2020
NQP bump brought: Raku/nqp@2020.08.2-18-gb28db8914...2020.08.2-28-g95b85c5f6
95b85c5f6 [MoarVM Bump] Brings 13 commits
41f143f68 Merge pull request #670 from usev6/nqp_singleton
37963db1b Merge pull request #669 from usev6/jvm_decoder
2944fc668 Run two more decoder tests on all backends
bb97ec4e9 Run five more decoder tests on all backends
cb28641ce Unify tests for streaming decoder
fc058f84e [JVM] Use singleton object for vmnull
3199f99aa Merge pull request #667 from patrickbkr/always-update-digest-sha
7f03a2ccb Include P6QRegex sources in common sources
afbb60f62 Update digest-sha on any source change

MoarVM bump brought: MoarVM/MoarVM@2020.08-91-g590bac47e...2020.08-104-g25c70bfe0
25c70bfe0 Hash tables must also resize if the max probe distance is hit on an empty slot.
34e0fb55e Merge pull request #1343 from MoarVM/sparc
39743de41 Merge pull request #1347 from MoarVM/MVMHash-copy_to-marking-bug
738024f9c Merge pull request #1341 from patrickbkr/fix-root-file-executable
21992e6f0 Merge pull request #1346 from MoarVM/optimize-boxed-float-boolification
124fe2be9 copy_to should call MVM_gc_write_barrier with the *new* key's address.
1fdfdf59c Fix endless recursion and segfault in dump_p6opaque
322c2e0b4 Comments and ASCII diagrams explaining the hash structure.
50d3311c7 Better specialize boolification of boxed Num
96d32a1ad Don't duplicate file existence checks
b243d0178 Fix MVM_file_isexecutable() when being root
077219993 Correctly align object references (ie pointers) in P6opaque object bodies.
87ad486f3 sparc32 does not support unaligned 32 bit reads or writes.
Kaiepi pushed a commit to Kaiepi/rakudo that referenced this pull request Sep 28, 2020
NQP bump brought: Raku/nqp@2020.08.2-18-gb28db8914...2020.08.2-28-g95b85c5f6
95b85c5f6 [MoarVM Bump] Brings 13 commits
41f143f68 Merge pull request rakudo#670 from usev6/nqp_singleton
37963db1b Merge pull request rakudo#669 from usev6/jvm_decoder
2944fc668 Run two more decoder tests on all backends
bb97ec4e9 Run five more decoder tests on all backends
cb28641ce Unify tests for streaming decoder
fc058f84e [JVM] Use singleton object for vmnull
3199f99aa Merge pull request rakudo#667 from patrickbkr/always-update-digest-sha
7f03a2ccb Include P6QRegex sources in common sources
afbb60f62 Update digest-sha on any source change

MoarVM bump brought: MoarVM/MoarVM@2020.08-91-g590bac47e...2020.08-104-g25c70bfe0
25c70bfe0 Hash tables must also resize if the max probe distance is hit on an empty slot.
34e0fb55e Merge pull request rakudo#1343 from MoarVM/sparc
39743de41 Merge pull request rakudo#1347 from MoarVM/MVMHash-copy_to-marking-bug
738024f9c Merge pull request rakudo#1341 from patrickbkr/fix-root-file-executable
21992e6f0 Merge pull request rakudo#1346 from MoarVM/optimize-boxed-float-boolification
124fe2be9 copy_to should call MVM_gc_write_barrier with the *new* key's address.
1fdfdf59c Fix endless recursion and segfault in dump_p6opaque
322c2e0b4 Comments and ASCII diagrams explaining the hash structure.
50d3311c7 Better specialize boolification of boxed Num
96d32a1ad Don't duplicate file existence checks
b243d0178 Fix MVM_file_isexecutable() when being root
077219993 Correctly align object references (ie pointers) in P6opaque object bodies.
87ad486f3 sparc32 does not support unaligned 32 bit reads or writes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants