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 7 times, most recently from 859cb67 to 8d97a1f Compare April 2, 2026 12:58
@chqrlie chqrlie force-pushed the slices branch 6 times, most recently from e8fc9ce to c6c2a84 Compare April 11, 2026 10:58
@chqrlie chqrlie force-pushed the slices branch 9 times, most recently from 3c83a37 to 63f61d5 Compare April 16, 2026 07:34
@chqrlie chqrlie force-pushed the slices branch 2 times, most recently from db570b4 to 81906e7 Compare April 20, 2026 18:26
* slice syntax is a[start?:count?] or a[start?:count?:step]
* bit selections are mutated during analysis as `BitSelectionExpr`
* array slices are not implemented yet
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