More all-rounded implementation of the new objecty features, several bugfixes, and updates to the standard library to behave. Vector still needs a bit more work for some operations
This commit is contained in:
12
src/Type.cpp
12
src/Type.cpp
@@ -169,3 +169,15 @@ void Type::decreaseIndirection() {
|
||||
void Type::modifyIndirection(int mod) {
|
||||
setIndirection(indirection + mod);
|
||||
}
|
||||
|
||||
Type Type::withIncreasedIndirection() {
|
||||
Type *newOne = clone();
|
||||
newOne->increaseIndirection();
|
||||
return *newOne;
|
||||
}
|
||||
Type Type::withDecreasedIndirection() {
|
||||
Type *newOne = clone();
|
||||
newOne->decreaseIndirection();
|
||||
return *newOne;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user