From 2a5f0c67ca4d5123120885edf85498b5af483956 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 4 Dec 2009 10:23:12 -0800 Subject: [PATCH] spec: document that built-ins cannot be used as func values R=gri CC=golang-dev https://golang.org/cl/164088 --- doc/go_spec.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/go_spec.html b/doc/go_spec.html index 2f04de419d8..6c4862e668b 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 .