From: Robert Griesemer Date: Wed, 21 Nov 2012 22:40:50 +0000 (-0800) Subject: spec: be clearer about the scope of a package name X-Git-Tag: go1.1rc2~1821 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e12676304540fa9e160bf4cc28b954574f9ff944;p=gostls13.git spec: be clearer about the scope of a package name We have the notion of a PackageName, not package identifier. As is, it could construed that imports that rename a package don't have an "imported package identifier" but a local one. R=r, rsc, iant, ken, dsymonds CC=golang-dev https://golang.org/cl/6858049 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 73b65f5311..6115fae67b 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1529,7 +1529,7 @@ Go is lexically scoped using blocks: or function (but not method) declared at top level (outside any function) is the package block. -
  • The scope of an imported package identifier is the file block +
  • The scope of the package name of an imported package is the file block of the file containing the import declaration.
  • The scope of an identifier denoting a function parameter or