• Robert Griesemer's avatar
    spec: clarify what is considered a function call for len/cap special case · 87169813
    Robert Griesemer authored
    gccgo considers built-in function calls returning a constant not as function call (issue 7386)
    go/types considers any call (regular or built-in) as a function call
    
    The wording and examples clarify that only "function calls" that are issued
    at run-time (and thus do not result in a constant result) are considered
    function calls in this case.
    
    gc is inconsistent (issue 7385)
    gccgo already interprets the spec accordingly and issue 7386 is moot.
    go/types considers all calls (constant or not) as function calls (issue 7457).
    
    Fixes #7387.
    Fixes #7386.
    
    LGTM=r, rsc, iant
    R=r, rsc, iant, ken
    CC=golang-codereviews
    https://golang.org/cl/66860046
    87169813
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...
Makefile 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.txt 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...