From: Robert Griesemer Date: Fri, 6 Feb 2009 00:11:14 +0000 (-0800) Subject: making go-spec conform with 6g: X-Git-Tag: weekly.2009-11-06~2226 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=77ccfb090cfaf71c6b4d500120f15d3b675a7d12;p=gostls13.git making go-spec conform with 6g: - equality of struct types requires equality of field names DELTA=4 (0 added, 1 deleted, 3 changed) OCL=24478 CL=24487 --- diff --git a/doc/go_spec.txt b/doc/go_spec.txt index 2516942194..65b6426369 100644 --- a/doc/go_spec.txt +++ b/doc/go_spec.txt @@ -3,7 +3,7 @@ The Go Programming Language Specification (DRAFT) Robert Griesemer, Rob Pike, Ken Thompson -(January 30, 2009) +(February 5, 2009) ---- @@ -1647,9 +1647,8 @@ More precisely: have the same array length. - Two struct types are equal if they have the same number of fields in the - same order, corresponding fields are either both named or both anonymous, - and corresponding field types are equal. Note that field names - do not have to match. + same order, corresponding fields either have both the same name or + are both anonymous, and corresponding field types are identical. - Two pointer types are equal if they have equal base types.