Initial analysis: Identified weak reference auto-nil implementation needed
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
@ -41,7 +41,7 @@ static box Main {
|
|||||||
print("Initial parent check: " + child.getParentInfo())
|
print("Initial parent check: " + child.getParentInfo())
|
||||||
|
|
||||||
// When p goes out of scope, child.parent should automatically become null
|
// When p goes out of scope, child.parent should automatically become null
|
||||||
p = null
|
p = 0 // Setting to 0 instead of null to avoid the undefined variable issue
|
||||||
|
|
||||||
print("After parent dropped: " + child.getParentInfo())
|
print("After parent dropped: " + child.getParentInfo())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user