Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle all integral types & arbitrary steps #1

Closed
wants to merge 6 commits into from

Conversation

brianrourkeboll
Copy link
Owner

@brianrourkeboll brianrourkeboll commented Jan 28, 2024

This extends dotnet#16577 to handle all built-in integral types—int32, uint32, int64, uint64, int16, uint16, nativeint, unativeint, sbyte, byte, char—and arbitrary steps—[|start..step..finish|], [start..step..finish].

I could add tests for all of the supported types, but if I copied all of the tests for every type, this PR would end up adding close to 25,000 lines, which seems somewhat excessive... The arithmetic for determining count/length should already be apparent in the IL in the int32/int64 tests, and it should be valid for unsigned types as well.

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