1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:54:39 -07:00

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
This commit is contained in:
Robert Griesemer 2009-02-05 16:11:14 -08:00
parent f95a11e27f
commit 77ccfb090c

View File

@ -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.