]> Cypherpunks repositories - gostls13.git/commit
spec: clarify expression statements
authorRobert Griesemer <gri@golang.org>
Tue, 18 Sep 2012 18:25:53 +0000 (11:25 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 18 Sep 2012 18:25:53 +0000 (11:25 -0700)
commit8c058b32d1838e67d67277564b6cb9b0bccd1e75
tree11bf0c73529a6adec6b0f4bc7f10e4d7d7882288
parent384af66984c55cf82eaf3f15ca47fb84a31d764d
spec: clarify expression statements

Function and method calls are valid expression statements,
but calling certain built-in functions is not permitted.
Enumerate the built-ins.

Also: unsafe.Offsetof permits parenthesized selectors as
arguments.

This is simply documenting existing compiler behavior
(both gc and gccgo agree).

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