Commit 2a5f0c67 authored by Russ Cox's avatar Russ Cox

spec: document that built-ins cannot be used as func values

R=gri
CC=golang-dev
https://golang.org/cl/164088
parent 609eeee8
......@@ -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 .
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment