Skip to content

D108: length is pointer-width — len() returns isize (spec v7.28) - #2263

Merged
ehartford merged 1 commit into
mainfrom
len-isize
Oct 7, 2026
Merged

ehartford merged 1 commit into
mainfrom
len-isize

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's ruling of 2026-10-07, verbatim in docs/meetings/2026-10-07-D108-length-is-pointer-width-isize.md with the brief and the process note. Spec: §18.6 len()/count()/position() return isize, Int stays the fixed 64-bit alias; §4.2 usize/isize are pointer-width, 32 on wasm32. Implementation #2262 (NON-COMPLIANT until then); follow-on #2261. Docs-only: spec-inventory-check.

…isize; usize/isize are 32 bits on wasm32 (spec v7.28)

Ruled by Eric 2026-10-07. D11 ruled signedness and left the width to what
the runtime stored; the C-interop argument decides it: a len() meeting a
size_t is a sign change on every target and nothing more, so the migrated
corpora's boundary never depends on target width. Int stays the fixed
64-bit alias. The usize/isize sentence predated the wasm32 target and was
wrong; corrected in the same edit. The implementation is NON-COMPLIANT
until #2262 catches up; #2261 files the `length param N` facade clause.
@ehartford

Copy link
Copy Markdown
Contributor Author

Docs-only: src/main build :spec-inventory-check green (3.5s). Blessed words per the ruling; landed as the ruling itself.

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