Skip to content

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

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()#196
borisbat merged 1 commit into
masterfrom
bbatkin/fixed-array-isarray

Conversation

@borisbat

Copy link
Copy Markdown
Owner

daslang PR GaijinEntertainment/daScript#3095 replaces TypeDecl's flattened dim/dimExpr vectors with a structural Type::tFixedArray — the dim member is gone, so the two arg->type->dim.size() == 0 reads in the ImVec2/ImVec4 const&→by-value fixup stop compiling.

isArray() means "is a fixed-size array" in both worlds (dim.size() != 0 on current daslang master, baseType == tFixedArray after the rework), so !arg->type->isArray() compiles and behaves identically against both.

Merge order: this is mergeable ahead of the daslang PR — this repo's CI builds against current daslang master and is unaffected. Merging it unblocks daScript#3095's extended_checks, which does daspkg install dasImgui --branch master and currently fails with cb_dasIMGUI.h:164: no member named 'dim' in 'das::TypeDecl'.

Verified locally: module builds clean against the rework branch (junctioned tree, full _build rebuild + daslang startup smoke loading the rebuilt .shared_module).

🤖 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;
unblocks its extended_checks, which installs dasImgui from master.

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