fix(codegen): evaluate and release len temporaries #62
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/codegen-len-temporary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
lennow evaluates array expressions even when their length is known statically, preserving initializer side effects. It also releases temporary arrays, lists, and strings after reading their length while leaving borrowed values owned by their bindings.Regression coverage checks array initializer side effects, borrowed array use after
len, and release calls for temporary managed values. The built-ins example now demonstrates these behaviors.Tests