summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-12-04 10:23:12 -0800
committerRuss Cox <rsc@golang.org>2009-12-04 10:23:12 -0800
commitd121ace27d5f3b3928ca48564dc5521ec71edcbb (patch)
tree7bb8ae4bd85a9f8b39ed6506b797d67684ccfae4
parent7b181366e8ae39fc485f4bc1e63f61f91eb5d983 (diff)
downloadgo-d121ace27d5f3b3928ca48564dc5521ec71edcbb.tar.gz
spec: document that built-ins cannot be used as func values
R=gri CC=golang-dev http://codereview.appspot.com/164088
-rw-r--r--doc/go_spec.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 2f04de419..6c4862e66 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.
</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 .