]> Cypherpunks.ru repositories - gostls13.git/commit
spec: specify order of init() calls go1.3beta2
authorRobert Griesemer <gri@golang.org>
Wed, 21 May 2014 00:46:08 +0000 (17:46 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 21 May 2014 00:46:08 +0000 (17:46 -0700)
commitc00043b5d8bd53130bddb5ef1e88643dccc4586f
treefb56262b644d2670b71dbbb61c6bc4dbb6c9a36f
parentcb6cb42ede03d6a35fbe6603f22e8855910f9f51
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
doc/go_spec.html