Skip to content

spec: retained userdata's mode is its callable's capture view (§12.4) (D66, #1652) - #1692

Merged
ehartford merged 1 commit into
mainfrom
spec-d66-capture-wording
Sep 25, 2026
Merged

ehartford merged 1 commit into
mainfrom
spec-d66-capture-wording

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Docs-only; spec-inventory-check passed. Eric's ruling stands; this replaces the one unspellable sentence ("in-place mut U borrow") in §16.2b.5/§16.2b.9 and D66's amendment with the capture-view wording (§12.4). The compiler's missing capture exclusivity is #1691.

…, not an in-place parameter (D66, #1652)

Eric's ruling stands as given; the landed sentence said "an in-place
`mut U` borrow where the callback mutates it", which With cannot spell
(no in-place mode on a free-fn parameter). The userdata is `&U`; when
`U` is a callable its capture views decide the retention's mode, and a
mutate capture makes it exclusive for the window. The compiler's missing
capture exclusivity is #1691.
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.

1 participant