Skip to content

binder: detect fixed-array args via isArray(), not dim.size()#23

Merged
borisbat merged 1 commit into
masterfrom
bbatkin/fixed-array-isarray
Jun 11, 2026
Merged

binder: detect fixed-array args via isArray(), not dim.size()#23
borisbat merged 1 commit into
masterfrom
bbatkin/fixed-array-isarray

Conversation

@borisbat

Copy link
Copy Markdown
Owner

Sibling of borisbat/dasImgui#196 — daslang PR GaijinEntertainment/daScript#3095 deletes TypeDecl::dim, so the two dim.size() == 0 reads in the ImVec2/ImVec4 const&→by-value fixup stop compiling. isArray() has the same "is a fixed-size array" meaning in both worlds, so this merges cleanly ahead of the daslang PR.

Verified locally: full _build rebuild against the rework branch is clean.

🤖 Generated with Claude Code

daslang PR GaijinEntertainment/daScript#3095 replaces TypeDecl's
flattened dim/dimExpr vectors with a structural Type::tFixedArray —
the dim member is gone. isArray() means "is a fixed-size array" in
both worlds (dim.size() != 0 before, baseType == tFixedArray after),
so this compiles and behaves identically against current daslang
master and against the rework. Mergeable ahead of the daslang PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@borisbat borisbat merged commit fbc477c into master Jun 11, 2026
4 checks passed
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