]> Cypherpunks repositories - gostls13.git/commit
gob: decode into nil, this time for sure.
authorRob Pike <r@golang.org>
Mon, 14 Feb 2011 18:17:30 +0000 (10:17 -0800)
committerRob Pike <r@golang.org>
Mon, 14 Feb 2011 18:17:30 +0000 (10:17 -0800)
commit1778f50da3a14b310ad987dbbe4c3e2ea3872ff4
tree2696924f3e60289d01aaa960178ccd6aee9b6965
parent1723fbe13e9288f1dff1da90df6fd6922f941975
gob: decode into nil, this time for sure.

Yesterday's change was too simple-minded and failed if an
interface value was being discarded.  We need to parse the
data stream and remember any type information that arrives.

Also fix a minor bug when ignoring an interface: toss only what
we know about, not everything.

R=rsc
CC=golang-dev
https://golang.org/cl/4179045
src/pkg/gob/decode.go
src/pkg/gob/decoder.go
src/pkg/gob/encoder_test.go