Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
967a2b38
Commit
967a2b38
authored
Mar 03, 2011
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go spec: minor clarification of scope rule for functions
R=rsc, iant, r, r2 CC=golang-dev
https://golang.org/cl/4256050
parent
38a105e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
doc/go_spec.html
doc/go_spec.html
+3
-4
No files found.
doc/go_spec.html
View file @
967a2b38
<!-- title The Go Programming Language Specification -->
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of
February 22
, 2011 -->
<!-- subtitle Version of
March 3
, 2011 -->
<!--
<!--
TODO
TODO
...
@@ -1431,8 +1431,8 @@ Go is lexically scoped using blocks:
...
@@ -1431,8 +1431,8 @@ Go is lexically scoped using blocks:
<li>
The scope of a predeclared identifier is the universe block.
</li>
<li>
The scope of a predeclared identifier is the universe block.
</li>
<li>
The scope of an identifier denoting a constant, type, variable,
<li>
The scope of an identifier denoting a constant, type, variable,
or function
declared at top level (outside any function) is the
or function
(but not method) declared at top level (outside any
package block.
</li>
function) is the
package block.
</li>
<li>
The scope of an imported package identifier is the file block
<li>
The scope of an imported package identifier is the file block
of the file containing the import declaration.
</li>
of the file containing the import declaration.
</li>
...
@@ -5152,7 +5152,6 @@ The following minimal alignment properties are guaranteed:
...
@@ -5152,7 +5152,6 @@ The following minimal alignment properties are guaranteed:
<h2
id=
"Implementation_differences"
><span
class=
"alert"
>
Implementation differences - TODO
</span></h2>
<h2
id=
"Implementation_differences"
><span
class=
"alert"
>
Implementation differences - TODO
</span></h2>
<ul>
<ul>
<li><span
class=
"alert"
>
Implementation does not honor the restriction on goto statements and targets (no intervening declarations).
</span></li>
<li><span
class=
"alert"
>
Implementation does not honor the restriction on goto statements and targets (no intervening declarations).
</span></li>
<li><span
class=
"alert"
>
Gccgo: The
<code>
append
</code>
built-in function is not yet implemented.
</span></li>
<li><span
class=
"alert"
>
Gccgo: Method expressions are partially implemented.
</span></li>
<li><span
class=
"alert"
>
Gccgo: Method expressions are partially implemented.
</span></li>
<li><span
class=
"alert"
>
Gccgo: allows only one init() function per source file.
</span></li>
<li><span
class=
"alert"
>
Gccgo: allows only one init() function per source file.
</span></li>
</ul>
</ul>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment