From: Robert Griesemer Date: Mon, 7 Oct 2013 17:43:28 +0000 (-0700) Subject: spec: unsafe.Pointers are pointers X-Git-Tag: go1.2rc2~57 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e121de2f016df84f635c6bfb8b32e3b781e9f51f;p=gostls13.git spec: unsafe.Pointers are pointers But they cannot be dereferenced. See also issue 6116. Fixes #6358. R=r, rsc, iant, ken CC=golang-dev https://golang.org/cl/14374046 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 3d1189973d..4ed5f4d175 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5954,6 +5954,8 @@ func Sizeof(variable ArbitraryType) uintptr

Any pointer or value of underlying type uintptr can be converted to a Pointer type and vice versa. +A Pointer is a pointer type but a Pointer +value may not be dereferenced.

@@ -5962,6 +5964,8 @@ bits = *(*uint64)(unsafe.Pointer(&f))
 
 type ptr unsafe.Pointer
 bits = *(*uint64)(ptr(&f))
+
+var p ptr = nil