3 ms·
A slice is: type sliceStruct struct { array unsafe.Pointer len int cap int } I think you both _mean_ the same thing, just the previous poster is fo
by barsonme 11y ago
A slice is:
type sliceStruct struct {
array unsafe.Pointer
len int
cap int
}
I think you both _mean_ the same thing, just the previous poster is focusing on the entire struct itself, and you're focusing on the 'array' member of the struct.
Or I'm just babbling.
- amelius 11y agoMy point was that hiding a pointer in a struct does not magically make the aliasing go away.