From 86f5f7fdfae8ce24e1a47b326d9a1eee88a55248 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 28 Apr 2017 10:32:31 -0700 Subject: [PATCH] spec: clarify unsafe.Pointer conversions A pointer type of underlying type unsafe.Pointer can be used in unsafe conversions. Document unfortunate status quo. Fixes #19306. Change-Id: I28172508a200561f8df366bbf2c2807ef3b48c97 Reviewed-on: https://go-review.googlesource.com/42132 Reviewed-by: Matthew Dempsky Reviewed-by: Russ Cox Reviewed-by: Ian Lance Taylor --- doc/go_spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index c0d0d2c2c0..9a1cf0a0fe 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5968,7 +5968,7 @@ println like print but prints spaces between arguments and a newline at the e

Implementation restriction: print and println need not accept arbitrary argument types, but printing of boolean, numeric, and string -types must be supported. +types must be supported.

Packages

@@ -6431,7 +6431,7 @@ func Sizeof(variable ArbitraryType) uintptr 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. +a type of underlying type Pointer and vice versa. The effect of converting between Pointer and uintptr is implementation-defined.