Skip to content

Commit

Permalink
Expose Array::Shaped1|2|3Array roles
Browse files Browse the repository at this point in the history
Just as their native counterparts, so that can be used for dispatching
if necessary.
  • Loading branch information
lizmat committed Nov 1, 2020
1 parent 424ce71 commit 532b542
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core.c/Shaped1Array.pm6
@@ -1,6 +1,6 @@
# this is actually part of the Array class

my role Shaped1Array does ShapedArray {
role Shaped1Array does ShapedArray {
multi method AT-POS(::?CLASS:D: int \one) is raw {
nqp::ifnull(
nqp::atpos(
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/Shaped2Array.pm6
@@ -1,6 +1,6 @@
# this is actually part of the Array class

my role Shaped2Array does ShapedArray {
role Shaped2Array does ShapedArray {
multi method AT-POS(::?CLASS:D: int \one, int \two) is raw {
nqp::ifnull(
nqp::atpos2d(
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/Shaped3Array.pm6
@@ -1,6 +1,6 @@
# this is actually part of the Array class

my role Shaped3Array does ShapedArray {
role Shaped3Array does ShapedArray {
multi method AT-POS(::?CLASS:D: int \one, int \two, int \three) is raw {
nqp::ifnull(
nqp::atpos3d(
Expand Down

0 comments on commit 532b542

Please sign in to comment.