JuliaLang/julia

Improve reinterpret docstring

Open

#47,706 opened on Nov 25, 2022

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Julia (48,709 stars) (5,773 forks)batch import
docshelp wanted

Description

reinterpret(type, A) The docstring does not mention what types are allowed in type. I believe it is any type that isbitstype or eltype(A) itself, regardless of whether or not it is a bits type, but I'm not sure.

Additionally, in Julia 1.8.3 and 1.6.3, this works: reinterpret(Real, Real[1,2,3]). In Julia 1.0.5, it throws. Perhaps this warrants a compat entry? Or perhaps 1.0 is too far gone for that.

Contributor guide

Improve reinterpret docstring · JuliaLang/julia#47706 | Good First Issue