JuliaLang/julia

Improve reinterpret docstring

Open

#47,706 opened on 2022年11月25日

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

説明

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.

コントリビューターガイド