RAII #2

Merged
samsonium merged 14 commits from impl-dealloc into master 2026-10-18 18:00:04 +00:00
Showing only changes of commit b48c196509 - Show all commits
+11
View File
@@ -17,6 +17,14 @@ fn doSome(A a) A
return a;
}
fn doSomeNew() A
{
if (1 == 1)
{
return new A;
}
}
A a = new A;
a.some = 0;
printline(a);
@@ -24,3 +32,6 @@ printline(a);
a = doSome(a);
printline(a);
b = doSomeNew();
printline(b);