From: Robert Griesemer Date: Thu, 23 Oct 2014 16:45:11 +0000 (-0700) Subject: spec: minimal documention of unsafe.Pointer conversions X-Git-Tag: go1.4beta1~54 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5361b747b732cf6cf183591b7a66b83fb6fab29f;p=gostls13.git spec: minimal documention of unsafe.Pointer conversions Per suggestion from rsc as a result of the dicussion of (abandoned) CL 153110044. Fixes #7192. LGTM=r, rsc, iant R=r, rsc, iant, ken CC=golang-codereviews https://golang.org/cl/163050043 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 97effeaa4a..ad645c1ffc 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -6207,8 +6207,8 @@ type Error interface { The built-in package unsafe, known to the compiler, provides facilities for low-level programming including operations that violate the type system. A package using unsafe -must be vetted manually for type safety. The package provides the -following interface: +must be vetted manually for type safety and may not be portable. +The package provides the following interface:

@@ -6223,10 +6223,11 @@ 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. +Any pointer or value of underlying type uintptr can be converted to +a Pointer type and vice versa. +The effect of converting between Pointer and uintptr is implementation-defined.