Skip to content

Change seq.Slice func field signatures to take an index#418

Merged
mcy merged 4 commits intomainfrom
mcy/wrap-ptr
Feb 18, 2025
Merged

Change seq.Slice func field signatures to take an index#418
mcy merged 4 commits intomainfrom
mcy/wrap-ptr

Conversation

@mcy
Copy link
Member

@mcy mcy commented Jan 8, 2025

This slightly generalizes the API, since it allows seq.Slice users to return values that reference the wrapped slice by pointer. This is not used in the AST package at the moment, but it will be useful for the IR package.

@mcy mcy requested a review from jhump January 8, 2025 16:16
@mcy mcy changed the title Pass the argument to a seq.Slice.Wrap by pointer Pass_ the argument to a seq.Slice.Wrap by pointer Jan 8, 2025
@jhump jhump changed the title Pass_ the argument to a seq.Slice.Wrap by pointer Change seq.Slice.Wrap function signature to take a pointer Jan 10, 2025
@mcy mcy changed the title Change seq.Slice.Wrap function signature to take a pointer Change seq.Slice func field signatures to take an index Feb 18, 2025
@mcy mcy enabled auto-merge (squash) February 18, 2025 20:04
@mcy mcy merged commit 0bb5972 into main Feb 18, 2025
8 checks passed
@mcy mcy deleted the mcy/wrap-ptr branch February 18, 2025 20:08
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