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

Support convert(::Type{ReadOnlyArray{T}}, Array{T})? #3

Closed
wmanning-cra opened this issue Jan 6, 2022 · 2 comments · Fixed by #5
Closed

Support convert(::Type{ReadOnlyArray{T}}, Array{T})? #3

wmanning-cra opened this issue Jan 6, 2022 · 2 comments · Fixed by #5

Comments

@wmanning-cra
Copy link
Contributor

I think it would be very useful to add an implicit conversion from an array to a read-only array.

@bkamins
Copy link
Collaborator

bkamins commented Jan 6, 2022

It should probably be for AbstractArray. I think it is OK to add it. If you would find it useful please go ahead and make a PR.

@wmanning-cra
Copy link
Contributor Author

#5

@wmanning-cra wmanning-cra linked a pull request Jan 18, 2022 that will close this issue
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 a pull request may close this issue.

2 participants