]> Cypherpunks repositories - gostls13.git/commitdiff
spec: document that built-ins cannot be used as func values
authorRuss Cox <rsc@golang.org>
Fri, 4 Dec 2009 18:23:12 +0000 (10:23 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 4 Dec 2009 18:23:12 +0000 (10:23 -0800)
R=gri
CC=golang-dev
https://golang.org/cl/164088

doc/go_spec.html

index 2f04de419d8b4f28cad527b1348cd994de94ef44..6c4862e668bf6ce1634aea3bf8d23043bed3aa75 100644 (file)
@@ -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.
 </p>
 
+<p>
+The built-in functions do not have standard Go types,
+so they can only appear in <a href="#Calls">call expressions</a>;
+they cannot be used as function values.
+</p>
+
 <pre class="ebnf">
 BuiltinCall = identifier "(" [ BuiltinArgs ] ")" .
 BuiltinArgs = Type [ "," ExpressionList ] | ExpressionList .