Descriptionspec: 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 issue 7387.
Fixes issue 7386.
Patch Set 1 #Patch Set 2 : diff -r 70499e5fbe5b https://code.google.com/p/go/ #Patch Set 3 : diff -r 70499e5fbe5b https://code.google.com/p/go/ #
Total comments: 1
Patch Set 4 : diff -r 86be37c8d562 https://code.google.com/p/go/ #Patch Set 5 : diff -r 2750cd9fc49b https://code.google.com/p/go #Patch Set 6 : diff -r 2750cd9fc49b https://code.google.com/p/go #Patch Set 7 : diff -r 7105a905bb2a https://code.google.com/p/go #MessagesTotal messages: 12
|