Skip to content

spec: explicit element-count facade buffers (D64) - #1670

Merged
ehartford merged 1 commit into
mainfrom
modeled-c-elements-ruling
Sep 25, 2026
Merged

ehartford merged 1 commit into
mainfrom
modeled-c-elements-ruling

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

The D64 byte-only contract cannot model int * plus an element count (#1643). Eric approved an explicit elements qualifier for input and in/out capacity buffer pairings.

The specification now states typed slices, checked conversion to the C count type, and copied-back bounds in elements. Unqualified clauses continue to count bytes; the caller's slice descriptor remains unchanged. The decision log records the approved amendment and reference evidence.

Validation: with build :spec-inventory-check passed. Compiler implementation follows separately; this does not close #1643.

@ehartford
ehartford merged commit 31489ce into main Sep 25, 2026
@ehartford
ehartford deleted the modeled-c-elements-ruling branch September 25, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant