Skip to content

Compiler: add support for slices#465

Open
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:slices
Open

Compiler: add support for slices#465
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:slices

Conversation

@chqrlie
Copy link
Copy Markdown
Contributor

@chqrlie chqrlie commented Mar 16, 2026

  • slice syntax is a[start?:count?] or a[start?:count?:step]
  • designated array initializers accept a range index
  • array initialisation checker updated for designated ranges
  • bit selections are mutated during analysis as BitSelectionExpr

@chqrlie chqrlie force-pushed the slices branch 5 times, most recently from 0f22bd7 to 2f96cd2 Compare March 24, 2026 13:50
@chqrlie chqrlie force-pushed the slices branch 2 times, most recently from 21a6ec9 to c20e063 Compare March 28, 2026 08:25
* slice syntax is a[start?:count?] or a[start?:count?:step]
* designated array initializers accept a range index
* array initialisation checker updated for designated ranges
* bit selections are mutated during analysis as `BitSelectionExpr`
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