From: Rob Pike Date: Tue, 14 Jan 2014 23:16:01 +0000 (-0800) Subject: spec: tighten the wording around . imports X-Git-Tag: go1.3beta1~969 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=227fe5f64e22d98e62e4e5165bffc3d6f8ec80b9;p=gostls13.git spec: tighten the wording around . imports Make it clear that if you do a . import, you cannot use a qualified identifier. R=gri CC=golang-codereviews https://golang.org/cl/52390043 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 06f0fec83a..3b6769d740 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5669,7 +5669,7 @@ If the PackageName is omitted, it defaults to the identifier specified in the If an explicit period (.) appears instead of a name, all the package's exported identifiers declared in that package's package block will be declared in the importing source -file's file block and can be accessed without a qualifier. +file's file block and must be accessed without a qualifier.

@@ -5693,7 +5693,7 @@ Assume we have compiled a package containing the package clause package math, which exports function Sin, and installed the compiled package in the file identified by "lib/math". -This table illustrates how Sin may be accessed in files +This table illustrates how Sin is accessed in files that import the package after the various types of import declaration.