aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-19 12:13:19 +0100
committergingerBill <bill@gingerbill.org>2021-10-19 12:13:19 +0100
commit662cbaf425a54127dea206c3a35d776853bac169 (patch)
tree31db819dd173ece01b3dfa3a846d2befc9fbbe92 /src/types.cpp
parent1556fad65a52af7683d5c80f2f724ef252525163 (diff)
Support indexing matrices
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 8e64a10c1..ec094b4ff 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1726,6 +1726,8 @@ bool is_type_indexable(Type *t) {
return true;
case Type_RelativeSlice:
return true;
+ case Type_Matrix:
+ return true;
}
return false;
}
@@ -1743,6 +1745,8 @@ bool is_type_sliceable(Type *t) {
return false;
case Type_RelativeSlice:
return true;
+ case Type_Matrix:
+ return false;
}
return false;
}