]> Cypherpunks repositories - gostls13.git/commit
gob: make recursive map and slice types work.
authorRob Pike <r@golang.org>
Fri, 25 Feb 2011 17:45:06 +0000 (09:45 -0800)
committerRob Pike <r@golang.org>
Fri, 25 Feb 2011 17:45:06 +0000 (09:45 -0800)
commitc54b5d032f593c5379e2286da11fb78fe33fd7a3
tree6113c5de219f627c888a13c6eef48c0970f585d4
parent895631770a761f94bf22c879e7d1a1eaa6a64a55
gob: make recursive map and slice types work.

Before this fix, types such as
        type T map[string]T
caused infinite recursion in the gob implementation.
Now they just work.

Fixes #1518.

R=rsc
CC=golang-dev
https://golang.org/cl/4230045
src/pkg/gob/codec_test.go
src/pkg/gob/decode.go
src/pkg/gob/encode.go
src/pkg/gob/encoder_test.go
src/pkg/gob/type.go