diff options
author | Russ Cox <rsc@golang.org> | 2009-12-04 10:23:12 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-04 10:23:12 -0800 |
commit | d121ace27d5f3b3928ca48564dc5521ec71edcbb (patch) | |
tree | 7bb8ae4bd85a9f8b39ed6506b797d67684ccfae4 | |
parent | 7b181366e8ae39fc485f4bc1e63f61f91eb5d983 (diff) | |
download | go-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.html | 6 |
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 . |