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

sigmatch: match array types based on length and elemType #344

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

ringabout
Copy link
Member

No description provided.

@@ -52,6 +52,10 @@ proc `..`*[T, U](a: T, b: U): HSlice[T, U] = discard
var myarr2: array[0..2, int] = myarr
myarr2 = [4, 5, 6]

var m3: array[4, int] = [1, 2, 3, 45]
var x3: array[4..7, int] = m3
Copy link
Member

@Araq Araq Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Nim 2 support this conversion?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@Araq Araq merged commit 4852d01 into master Jan 10, 2025
3 checks passed
@Araq Araq deleted the pr_sigmatch_array branch January 10, 2025 06:04
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