From abd56ef20bc8061bbecec29edd1301d324c2cb34 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 08:34:42 +0000 Subject: feat(classes): destroy stack objects at scope exit Co-Authored-By: Claude Opus 5.5 --- tests/i/class-raii/notes.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/i/class-raii/notes.md (limited to 'tests/i/class-raii/notes.md') diff --git a/tests/i/class-raii/notes.md b/tests/i/class-raii/notes.md new file mode 100644 index 0000000..336e5cb --- /dev/null +++ b/tests/i/class-raii/notes.md @@ -0,0 +1,5 @@ +# Stack lifetimes + +Human review: pending. Expected output was independently traced by AI. + +Loop re-declarations destroy 31 and 32 before reinitialization. Copy destroys local 20 then its shallow parameter copy 21. Early RETURN destroys record field 50, array elements 42 and 41, loop local 33, original rebound storage 2 and first local 1. Heap object 99 stays alive. Never is not constructed. Main destroys 100 after its final output. -- cgit v1.3.1-4-g156e