Skip to content

regenerate: drop the ast_typefactory_bind.h include and needStringCast - #46

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 and needStringCast#46
borisbat merged 1 commit into
borisbat:masterfrom
aleksisch:drop-typefactory-bind-include

Conversation

@aleksisch

@aleksisch aleksisch commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Two things the generated bindings carry that GaijinEntertainment/daScript#3921 removes:

  • #include "daScript/ast/ast_typefactory_bind.h" — that header is deleted there. Its cast_arg specializations 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.
  • fn->needStringCast = true in the module fixup — daScript now substitutes "" for a null daslang string on every bind, in the interpreter, AOT and JIT alike, so the flag is gone and the scan that fed it has nothing left to do.

Please merge before daScript#3921 — its fatman and wasmboy jobs clone this repo's default branch, so they fail on both counts 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 b1f4994 into borisbat:master Sep 1, 2026
5 checks passed
@aleksisch aleksisch changed the title regenerate: drop the ast_typefactory_bind.h include regenerate: drop the ast_typefactory_bind.h include and needStringCast Sep 2, 2026
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