You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ownership.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
Last Updated 15 Sept 2024
2
+
Last Updated 20 Nov 2024
3
3
4
4
This is a work in progress. Cake source is currently being used to validate the concepts. It's in the process of transitioning to include annotated nullable checks, which was the last feature added.
5
5
@@ -173,10 +173,11 @@ void x_destroy(_Opt struct X * p)
173
173
174
174
#### mutable
175
175
176
-
Note that this concept also could be applied for const members.
176
+
Note that this concept of constructor phase also could be applied for const members.
177
177
178
178
The introduction of a **mutable** qualifier allows certain exceptions to the usual contract
179
179
of immutability and non-nullability during transitional phases, such as in constructors and destructors.
180
+
180
181
This means that objects marked as **mutable** can temporarily violate their normal constraints,
181
182
such as modifying `const` members or assigning null to non-nullable pointers during these phases.
0 commit comments