4 ms·
Package unsafe is in the spec, but converting unsafe.Pointer to uintptr (which is how I'm supposing you'd do your pointer arithmetic) is implementation-defined.
by echlebek 9y ago
Package unsafe is in the spec, but converting unsafe.Pointer to uintptr (which is how I'm supposing you'd do your pointer arithmetic) is implementation-defined.
This means I could create a perfectly legal implementation of Go where such things result in complete nonsense. I don't think package unsafe "counts".