]> Cypherpunks repositories - gostls13.git/commit
reflect: allow PtrValue.PointTo(nil)
authorRobert Griesemer <gri@golang.org>
Tue, 17 Aug 2010 22:12:28 +0000 (15:12 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Aug 2010 22:12:28 +0000 (15:12 -0700)
commita48b35e9617c6f40156c1ad02a3cf99063fd742f
treeef16a6961fce09747cb2a086283e2ade6ccb3b65
parent660ce1425f8c3c172c8a0b4757a9be903ff680f7
reflect: allow PtrValue.PointTo(nil)

(Argument: For any *PtrValue p, it should
always be possible to do: p.PointTo(p.Elem()),
even if p.Elem() is nil.)

Fixes #1028.

R=rsc
CC=golang-dev, r
https://golang.org/cl/1938044
src/pkg/reflect/all_test.go
src/pkg/reflect/value.go