|
|
|
|
|
by watt
1752 days ago
|
|
I don't get why address of slice returned from "append" does not change. Maybe in a trivial program like this the backing array can always be extended in-place, because there in memory fragmentation. Is that still true in an app that has considerable memory pressure and has GC running now and then? |
|
In other words, ps is a pointer to a pointer to array data. Append may change the inner pointer's value but that's about it.