diff --git a/NEWS.md b/NEWS.md index 3347b8f8a4dcf..744b4c70f691a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -63,6 +63,9 @@ Breaking changes `pmap(retry(f), c)` or `pmap(@catch(f), c)` can be used instead. ([#15409](https://github.com/JuliaLang/julia/pull/15409#discussion_r57494701)). + * `reshape` is now defined to always share data with the original array. + If a reshaped copy is needed, use `copy(reshape(a))` or `copy!` to a new array of + the desired shape ([#4211]). Library improvements -------------------- @@ -160,6 +163,7 @@ Deprecated or removed [PkgDev]: https://github.com/JuliaLang/PkgDev.jl +[#4211]: https://github.com/JuliaLang/julia/issues/4211 [#8036]: https://github.com/JuliaLang/julia/issues/8036 [#8846]: https://github.com/JuliaLang/julia/issues/8846 [#9503]: https://github.com/JuliaLang/julia/issues/9503 @@ -190,6 +194,7 @@ Deprecated or removed [#15192]: https://github.com/JuliaLang/julia/issues/15192 [#15242]: https://github.com/JuliaLang/julia/issues/15242 [#15258]: https://github.com/JuliaLang/julia/issues/15258 +[#15409]: https://github.com/JuliaLang/julia/issues/15409 [#15550]: https://github.com/JuliaLang/julia/issues/15550 [#15609]: https://github.com/JuliaLang/julia/issues/15609 [#15763]: https://github.com/JuliaLang/julia/issues/15763 diff --git a/base/docs/helpdb/Base.jl b/base/docs/helpdb/Base.jl index 83eeb1b5c9fc3..35c06a6709730 100644 --- a/base/docs/helpdb/Base.jl +++ b/base/docs/helpdb/Base.jl @@ -1565,9 +1565,7 @@ ind2chr """ reshape(A, dims) -Create an array with the same data as the given array, but with different dimensions. An -implementation for a particular type of array may choose whether the data is copied or -shared. +Create an array with the same data as the given array, but with different dimensions. """ reshape