]> Cypherpunks repositories - gostls13.git/commit
spec: clarifications around exports, uniqueness of identifiers
authorRobert Griesemer <gri@golang.org>
Thu, 1 Mar 2012 21:57:49 +0000 (13:57 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 1 Mar 2012 21:57:49 +0000 (13:57 -0800)
commit103c9db74737afc67c394e3c68c746ba176f2b49
treec3b970ff4219e6c189da053a2c90d6b4ca5aada2
parent3c3c5f38a057d76ebdf5424ba7b595aca886b6a9
spec: clarifications around exports, uniqueness of identifiers

- Define what it means for two identifiers to be unique.

- The current spec is incorrect about exported
identifiers: for instance, it excluded fields
of non-exported types of exported variables
from being exported. It is easier to leave
the detailed specification away and let the
rest of the spec govern access of exported
identifiers.

- The current spec is incorrect about qualified
identifiers: It simply required that an identifier
be exported to be valid in a qualified identifier.
However, qualified identifiers can only access
exported identifiers declared in the package
block of the imported package.

Fixes #1551.

R=r, rsc, iant, ken
CC=golang-dev
https://golang.org/cl/5711043
doc/go_spec.html