]> Cypherpunks repositories - gostls13.git/commit
spec: clarify use of built-ins in go/defer statements
authorRobert Griesemer <gri@golang.org>
Thu, 29 Nov 2012 19:46:25 +0000 (11:46 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 29 Nov 2012 19:46:25 +0000 (11:46 -0800)
commit25dd00295c54fa23a545bfdd27824ac403ceba84
tree6f114803310fcbb0636894702c7128fa176420b3
parent372cf8fe87de7a49818de2157429ccbc76c35c2d
spec: clarify use of built-ins in go/defer statements

1) Built-ins are restricted like for expression statements.
   This documents the status quo.

2) Calls cannot be parenthesized. The spec is not clear. gccgo
   permits it already, gc doesn't. Be explicit in the spec.

 Fixes #4462.

R=rsc, iant, r, ken, lvd
CC=golang-dev
https://golang.org/cl/6861043
doc/go_spec.html