Sorry all for raising an issue where none existed. My previous code was also treating slices as views, but just by dumb luck -- because of the specific programming logic -- I was not reading the changed elements of A
and hence not aware of the problem. The input used to construct A
changed recently, making it so that I was seeing the changed elements now, and I thought this was new behavior. Please consider this closed.