1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:00:06 -07:00
go/doc
Robert Griesemer 871698136d spec: clarify what is considered a function call for len/cap special case
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
2014-03-03 20:07:34 -08:00
..
articles doc: restore race detector manual 2014-02-11 09:26:34 +11:00
codewalk doc: fix small HTML problems 2013-10-12 18:40:41 -04:00
devel doc: document Go 1.2.1 2014-03-03 11:26:18 +11:00
gopher doc/gopher: add high-resolution pencil sketches 2012-12-12 10:51:13 -08:00
play doc: remove godocs.js and playground.js from core repo 2013-08-01 15:09:18 +10:00
progs doc/progs: don't try building cgo tests if CGO_ENABLED=0 2013-10-11 08:55:13 -07:00
asm.html doc/asm: more about SP, ARM R11 2013-11-13 21:29:34 -05:00
cmd.html doc: re-organize golang.org site content 2013-09-16 15:47:13 +10:00
code.html doc: update installation instructions 2013-11-21 07:55:29 +11:00
contrib.html doc/contrib.html: fix some tags 2013-10-15 18:41:23 +11:00
contribute.html 2014: Year of the Gopher. 2014-01-01 00:00:22 +11:00
debugging_with_gdb.html doc: correct some minor HTML errors found by tidy 2013-02-28 13:32:36 -08:00
docs.html doc: restore race detector manual 2014-02-11 09:26:34 +11:00
effective_go.html effective_go: move 'Type switch' section into 'Control structures' section. 2014-01-23 16:26:42 -08:00
gccgo_contribute.html doc: update gccgo docs 2013-06-20 14:49:15 -07:00
gccgo_install.html doc: update list of gccgo import search paths 2013-12-06 13:33:10 -08:00
go1.1.html doc: fix a few broken links 2013-10-09 07:05:43 +11:00
go1.2.html encoding/gob: do not use MarshalText, UnmarshalText 2013-11-13 21:29:19 -05:00
go1.3.txt doc: add freebsd items 2014-03-04 10:53:24 +09:00
go1.html doc: re-organize golang.org site content 2013-09-16 15:47:13 +10:00
go1compat.html doc: re-organize golang.org site content 2013-09-16 15:47:13 +10:00
go_faq.html doc: change "threads" to "goroutines" 2013-12-12 18:48:40 -08:00
go_mem.html doc: move spec and memory model back to /ref/ 2013-10-04 09:45:06 +10:00
go_spec.html spec: clarify what is considered a function call for len/cap special case 2014-03-03 20:07:34 -08:00
go-logo-black.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
go-logo-blue.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
go-logo-white.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
help.html doc: rename @go_nuts to @golang 2013-10-02 11:46:44 +10:00
ie.css
install-source.html doc/install-source.html: mention make.bash to skip tests 2013-12-15 21:03:12 -05:00
install.html doc: document Go 1.2.1 2014-03-03 11:26:18 +11:00
logo-153x55.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
Makefile doc/progs: use test/run.go for testing on Windows 2012-09-03 03:49:03 +08:00
root.html doc: remove "Code that grows with grace" video from front page 2014-02-11 16:00:44 +11:00
share.png godoc: change link styles, add 'pop out' button 2012-03-13 11:00:11 +11:00
sieve.gif
tos.html doc: add Terms of Service 2012-03-27 09:27:43 +11:00