• Robert Griesemer's avatar
    spec: clarify section on package initialization · a4366984
    Robert Griesemer authored
    - 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
    a4366984
Name
Last commit
Last update
..
articles Loading commit data...
codewalk Loading commit data...
devel Loading commit data...
gopher Loading commit data...
play Loading commit data...
progs Loading commit data...
asm.html Loading commit data...
cmd.html Loading commit data...
code.html Loading commit data...
contrib.html Loading commit data...
contribute.html Loading commit data...
debugging_with_gdb.html Loading commit data...
docs.html Loading commit data...
effective_go.html Loading commit data...
gccgo_contribute.html Loading commit data...
gccgo_install.html Loading commit data...
go-logo-black.png Loading commit data...
go-logo-blue.png Loading commit data...
go-logo-white.png Loading commit data...
go1.1.html Loading commit data...
go1.2.html Loading commit data...
go1.3.html Loading commit data...
go1.html Loading commit data...
go1compat.html Loading commit data...
go_faq.html Loading commit data...
go_mem.html Loading commit data...
go_spec.html Loading commit data...
help.html Loading commit data...
ie.css Loading commit data...
install-source.html Loading commit data...
install.html Loading commit data...
logo-153x55.png Loading commit data...
root.html Loading commit data...
share.png Loading commit data...
sieve.gif Loading commit data...
tos.html Loading commit data...