]> Cypherpunks repositories - gostls13.git/commit
the first time a structure type appears when printing, identify it by name:
authorRob Pike <r@golang.org>
Sat, 27 Jun 2009 03:28:06 +0000 (20:28 -0700)
committerRob Pike <r@golang.org>
Sat, 27 Jun 2009 03:28:06 +0000 (20:28 -0700)
commitac7f2152eb21cf605e291c3b06199751a0f1d5d2
tree1a65c33ae2ac58ae71a650b08afec5e1322ca99c
parentd6197d94b53d7ba7a299f5501dd29cfa2a76132d
the first time a structure type appears when printing, identify it by name:
type Foo struct { a int; next *Foo }
produces
"Foo = struct { a int; next Foo }"

R=rsc
OCL=30797
CL=30820
src/pkg/gob/type.go
src/pkg/gob/type_test.go