]> Cypherpunks repositories - gostls13.git/commitdiff
spec: be clearer about the scope of a package name
authorRobert Griesemer <gri@golang.org>
Wed, 21 Nov 2012 22:40:50 +0000 (14:40 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 21 Nov 2012 22:40:50 +0000 (14:40 -0800)
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

doc/go_spec.html

index 73b65f5311b9d3962b4be14716eacea5301116c2..6115fae67b82fef3d3c7a17292b9a6cdd0a1a5e6 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of November 17, 2012",
+       "Subtitle": "Version of November 21, 2012",
        "Path": "/ref/spec"
 }-->
 
@@ -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.</li>
 
-       <li>The scope of an imported package identifier is the file block
+       <li>The scope of the package name of an imported package is the file block
            of the file containing the import declaration.</li>
 
        <li>The scope of an identifier denoting a function parameter or