Repository navigation
spec §16.2b.3: in-place resources are pinned by default; movable is the facade's claim (D54) - #1276
Merged
Merged
Conversation
… the facade's claim (D54) Eric's ruling, 2026-09-22. The compiler cannot infer whether `init` stores a back-pointer, and the costs are asymmetric: a needlessly pinned resource costs one heap allocation; a needlessly movable one is silent memory corruption after the first move. The pinned rendering is a heap cell owned by the resource value — no immovable type category — with destruction before the cell is freed, the cell present from construction, borrows pointing into the cell, and pinning covering the representation's own storage only. decisions.md D54 records the reasoning; the D51 ruling document is silent on address stability and is not amended.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eric's ruling of 2026-09-22 (address stability of in-place resources), landed as the spec sentences in §16.2b.3 with the register matched to the surrounding text, plus decisions.md D54 recording the reasoning (pinned by default because the unstated default must be the safe one; heap cell, never an immovable type; destroy then free; cell exists from construction; borrows point into the cell; pinning covers the representation's own storage only).
Docs-only:
spec-inventory-checkgreen; no build/fixpoint/test (docs are not battery inputs). The compiler is NON-COMPLIANT until #1275 (stage 4b) renders the heap cell and themovableclause — that rework is in progress on the same PR.