commit c00043b5d8bd53130bddb5ef1e88643dccc4586f [browse]
Author: Robert Griesemer
Date: 2014-05-20 17:46:08 -07:00

spec: specify order of init() calls

The spec did not specify the order in which
init() functions are called. Specify that
they are called in source order since we have
now also specified the initialization order
of independent variables.

While technically a language change, no
existing code could have relied on this,
so this should not break anything.

Per suggestion from rsc.

LGTM=r, iant
R=rsc, iant, r, ken
CC=golang-codereviews
https://golang.org/cl/98420046

commit cb6cb42ede03d6a35fbe6603f22e8855910f9f51 [browse]
Author: Keith Randall
Date: 2014-05-20 16:26:04 -07:00

reflect: don't panic on delete from nil map.

Fixes #8051

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/95560046

commit a43669843b155ddb575d95acdb72dc62a1434efd [browse]
Author: Robert Griesemer
Date: 2014-05-20 13:51:39 -07:00

spec: clarify section on package initialization

- split description of package initialization and
  program execution
- better grouping of concerns in section on package
  initialization
- more explicit definition of what constitues a
  dependency
- removed language about constant dependencies -
  they are computed at compile-time and not
  initialized at run-time
- clarified that independent variables are initialized
  in declaration order (rather than reference order)

Note that the last clarification is what distinguishes
gc and gccgo at the moment: gc uses reference order
(i.e., order in which variables are referenced in
initialization expressions), while gccgo uses declaration
order for independent variables.

Not a language change. But adopting this CL will
clarify what constitutes a dependency.

Fixes #6703.

LGTM=adonovan, r, iant, rsc
R=r, rsc, iant, ken, adonovan
CC=golang-codereviews
https://golang.org/cl/99020043

commit 4d36ad77912018b1c1dcfeddf3e7a87d92936f8c [browse]
Author: Rob Pike
Date: 2014-05-20 11:57:58 -07:00

doc/go_spec.html: fix broken anchor tag

LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/99420045

commit 87ef6e91568507e53b902c558f0cc4d8447e5dd7 [browse]
Author: Rob Pike
Date: 2014-05-20 11:57:21 -07:00

doc/install.html: fix duplicate id= tag

LGTM=minux.ma
R=adg, minux.ma
CC=golang-codereviews
https://golang.org/cl/95540045

clone the repository to get more history