]> Cypherpunks repositories - gostls13.git/commit
spec: clarify that any unsafe.Pointer type is okay in conversion
authorRuss Cox <rsc@golang.org>
Sat, 9 Feb 2013 22:36:31 +0000 (17:36 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 9 Feb 2013 22:36:31 +0000 (17:36 -0500)
commit81eb930f7e021e334ec2b54dc4ba6b1ab825887f
tree38fc2b3ff7a46dc091a1fc475dbf909edb5e52ab
parent6ce3e99af0af2c3d643bb61cb26e639282a142bc
spec: clarify that any unsafe.Pointer type is okay in conversion

The spec is not clear about whether this is allowed or not,
but both compilers allow it, because the reflect implementation
takes advantage of it. Document current behavior.

Fixes #4679.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7303064
doc/go_spec.html