Skip to content

make ArrayLiteralExp more abstract - #23552

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
WalterBright:arrayLength
Aug 7, 2026
Merged

make ArrayLiteralExp more abstract#23552
thewilsonator merged 1 commit into
dlang:masterfrom
WalterBright:arrayLength

Conversation

@WalterBright

Copy link
Copy Markdown
Member

In attempting to fix #23367, @ntrel submitted #23372.

But, he ran into problems. The problem is that ArrayLiteralExp has not sufficiently abstracted elements. What's necessary is to make it a sparse array. This PR is a step in that direction by abstracting length. Trying to do this all in one go would be too difficult to review.

@WalterBright WalterBright added the Severity:Refactoring No semantic changes to code label Aug 7, 2026
@WalterBright
WalterBright force-pushed the arrayLength branch 4 times, most recently from 2ed0b67 to ff702fd Compare August 7, 2026 21:08
@thewilsonator
thewilsonator merged commit 29b4408 into dlang:master Aug 7, 2026
42 checks passed
@WalterBright
WalterBright deleted the arrayLength branch August 7, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Severity:Refactoring No semantic changes to code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Excessive memory consumption with large array literals

2 participants