Relative pointer and relative slices

This commit is contained in:
gingerBill
2020-05-15 18:45:24 +01:00
parent 95e8668b77
commit e1bdaa981a
6 changed files with 288 additions and 92 deletions

View File

@@ -1572,6 +1572,8 @@ bool is_type_indexable(Type *t) {
return true;
case Type_EnumeratedArray:
return true;
case Type_RelativeSlice:
return true;
}
return false;
}
@@ -1587,6 +1589,8 @@ bool is_type_sliceable(Type *t) {
return true;
case Type_EnumeratedArray:
return false;
case Type_RelativeSlice:
return true;
}
return false;
}