Skip to content

0.6.3 scripts: daslang fixed-array rework (tFixedArray)#45

Merged
profelis merged 1 commit into
v2from
bbatkin/fixed-array-compat
Jun 11, 2026
Merged

0.6.3 scripts: daslang fixed-array rework (tFixedArray)#45
profelis merged 1 commit into
v2from
bbatkin/fixed-array-compat

Conversation

@borisbat

@borisbat borisbat commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Reworked for the multiversion layout (4776095): one commit on top of v2 adding a server/0.6.3/ scripts folder and its VERSION_SCRIPT_DIRS entry.

daslang 0.6.3 (GaijinEntertainment/daScript#3095) replaces TypeDecl's flattened dim vector with structural Type::tFixedArray chains (element in firstType, one size per node in fixedDim). The 0.6.3 scripts walk the chain in parse_typedecl; the client-facing model stays flat (leaf baseType + dim list + tdk1 = one-level peel), so completion.ts needs no changes. Binaries reporting 0.6.1/0.6.2 keep the 0.6.1 scripts; the new entry only captures >= 0.6.3.

Verified end-to-end against daslang 0.6.3 master: validate_file.das on a file with typedef M4 = float[4], M4[10] and int[3][4] fields produces

float[10][4]  baseType=float  dim=[10,4]  tdk1=float[4]
float[4]      baseType=float  dim=[4]     tdk1=float
int[3][4]     baseType=int    dim=[3,4]   tdk1=int[4]

— identical shape to the pre-rework output, peeling one level per index. tsc -b clean; packaged as 1.3.6 and validated interactively in VSCode.

🤖 Generated with Claude Code

daslang 0.6.3 (GaijinEntertainment/daScript#3095) replaces TypeDecl's
flattened dim vector with structural Type::tFixedArray chains (element
in firstType, one size per node in fixedDim). New server/0.6.3 scripts
walk the chain in parse_typedecl; the client model stays flat (leaf
baseType + dim list + tdk1 = one-level peel), so completion.ts is
untouched. Registered in VERSION_SCRIPT_DIRS; 0.6.1/0.6.2 binaries
keep the 0.6.1 scripts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@borisbat borisbat force-pushed the bbatkin/fixed-array-compat branch from 93cda92 to db454ef Compare June 11, 2026 09:12
@borisbat borisbat changed the title Compatibility with current daslang master: gc-node migration + fixed-array rework (1.3.6) 0.6.3 scripts: daslang fixed-array rework (tFixedArray) Jun 11, 2026
@profelis profelis merged commit c608c9b into v2 Jun 11, 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