]> Cypherpunks repositories - gostls13.git/commit
fix up %p
authorRob Pike <r@golang.org>
Tue, 22 Dec 2009 20:34:17 +0000 (07:34 +1100)
committerRob Pike <r@golang.org>
Tue, 22 Dec 2009 20:34:17 +0000 (07:34 +1100)
commit148ee9c0092cc6bde1fd7e40f5d7fd6f05897847
treedee0ab89333701fbb6e3ca65771cecc415331e6a
parentd488c4b4acc4ffadb4ac09b5c6f0f2898fd29fa2
fix up %p
- use an interface {Get()}
- implement Get for maps, slices
- for slices, retrieves the address of the end of the array, which will give the
same value for every slice of the same array.

R=rsc
CC=golang-dev
https://golang.org/cl/179129
src/pkg/fmt/print.go
src/pkg/reflect/value.go