Skip to content

regenerate: drop the ast_typefactory_bind.h include - #30

Merged
borisbat merged 1 commit into
borisbat:masterfrom
aleksisch:drop-typefactory-bind-include
Sep 1, 2026
Merged

regenerate: drop the ast_typefactory_bind.h include#30
borisbat merged 1 commit into
borisbat:masterfrom
aleksisch:drop-typefactory-bind-include

Conversation

@aleksisch

Copy link
Copy Markdown
Collaborator

The generated bindings include daScript/ast/ast_typefactory_bind.h, which GaijinEntertainment/daScript#3921 deletes: the cast_arg specializations it carried move next to the generic cast_arg in simulate/interop.h, and the typeFactory callback fallback next to the primary typeFactory in ast/ast_typedecl.h. The binder no longer emits the include, so this is what regenerating produces.

Why the move was needed: the call node is now keyed on the signature, so one instantiation is shared by binds from many translation units, and only the TUs that included this header saw the null-string conversion. Same weak symbol, different bodies, winner decided by object order.

Please merge before daScript#3921 - that PR's fatman and wasmboy jobs clone this repo's default branch, so they stay red until this lands.

daScript deletes that header: the cast_arg specializations it carried
move next to the generic cast_arg in simulate/interop.h, and the
typeFactory callback fallback next to the primary typeFactory in
ast/ast_typedecl.h. The binder no longer emits the include.

The wrap had to move because the call node is now keyed on the
signature, so one instantiation is shared by binds from many TUs, and
only the TUs including this header saw the null-string conversion.

Needs GaijinEntertainment/daScript#3921
@borisbat
borisbat merged commit 6d86f84 into borisbat:master Sep 1, 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.

2 participants