Skip to content

Spec v7.4 (D71): ten rulings from the modeled-C close-out - #1767

Merged
ehartford merged 1 commit into
mainfrom
rulings-batch-10
Sep 27, 2026
Merged

ehartford merged 1 commit into
mainfrom
rulings-batch-10

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's "predicted" (2026-09-27) on the close-out brief. Docs only; spec-inventory-check green. Merging this PR blesses the words.

Issue Ruling Where
#1587 s[a..b] on str is a &str view of byte offsets; out of range or mid-character panics §4.8a
#1239 positional collections have no get; xs[i] is the one spelling (get stays the keyed-map lookup) Element access (D27); CLAUDE.md/AGENTS.md conformed
#1482 @[flags] without a repr doubles in the default representation; never ignored §4.4a
#1497 from_int only on all-unit enums; a payload variant makes the call an error naming it §4.4a
#1508 closure -> T is checked like a declared return type §12
#1564 :? covers the table's types, compositions and impl Debug; no Debug form is a compile error, never a placeholder §15.4.7
#1421 @[repr(packed(N))] caps field alignment at N (C's #pragma pack(N)); c_import emits it §16.4
#1432 ok may list several constants; the success side carries the matched status §16.2b.4 + ruling Amendment 1
#1612 valid on failed presents an operation on the failed-state type §16.2b.4 + ruling Amendment 1
#1611 handle Name wraps *mut T: callback-scope, no producer/destroyer/Drop §16.2b.9 + ruling Amendment 1

One deliberate difference from the brief: I predicted repr(packed(N)) would be unwritable outside a facade; the text lets any record use it, as repr(packed) already can. Merging accepts that; say so if you want the restriction.

The modeled-C ruling's canonical text is untouched; the three facade clauses are an appended Amendment 1. The compiler is NON-COMPLIANT on each until implemented.

…ices, positional get retired, @[flags]/from_int, closure -> T, :? coverage, repr(packed(N)), and facade ok lists, valid on failed, callback-scope handles (ruling Amendment 1)
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