julia
857e0178 - Document changing view indices after construction as undefined behavior. (#59591)

Commit
120 days ago
Document changing view indices after construction as undefined behavior. (#59591) Refs: https://discourse.julialang.org/t/is-it-defined-behavior-to-modify-iter-while-for-looping-over-it/132477/11?u=gunnarfarneback ``` julia> v = collect(1:7); julia> i = collect(1:7); julia> w = view(v, i); julia> i[end] = 0; julia> w[end] 128974949945120 # random value or segfault possible ```
Parents
Loading