Skip to content

fix WriteRef#298

Merged
batatovich merged 2 commits intomainfrom
fix-write-ref
Feb 18, 2026
Merged

fix WriteRef#298
batatovich merged 2 commits intomainfrom
fix-write-ref

Conversation

@batatovich
Copy link
Collaborator

@batatovich batatovich commented Feb 17, 2026

Summary

Fix WriteRef. When a callee performed *ref = new_value on a mutable reference to a struct, enum, or vector, the new data was written to a fresh heap allocation but the caller's reference still pointed to the old allocation, so the caller never observed the update

Changes Made

  • Now WriteRef overrides the original reference with the new value

Checklist

  • I have read the contributing guidelines.
  • I have added/updated tests where appropriate.
  • I have run relevant tests locally.
  • I have updated relevant documentation (if applicable).
  • I have disclosed any AI assistance per AI_POLICY.md.

nicoan
nicoan previously approved these changes Feb 18, 2026
@batatovich batatovich merged commit 4e75452 into main Feb 18, 2026
1 check passed
@batatovich batatovich deleted the fix-write-ref branch February 18, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants