From: Russ Cox Date: Fri, 4 Dec 2009 18:23:12 +0000 (-0800) Subject: spec: document that built-ins cannot be used as func values X-Git-Tag: weekly.2009-12-07~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2a5f0c67ca4d5123120885edf85498b5af483956;p=gostls13.git spec: document that built-ins cannot be used as func values R=gri CC=golang-dev https://golang.org/cl/164088 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 2f04de419d..6c4862e668 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -4099,6 +4099,12 @@ They are called like any other function but some of them accept a type instead of an expression as the first argument.

+

+The built-in functions do not have standard Go types, +so they can only appear in call expressions; +they cannot be used as function values. +

+
 BuiltinCall = identifier "(" [ BuiltinArgs ] ")" .
 BuiltinArgs = Type [ "," ExpressionList ] | ExpressionList .