]> Cypherpunks repositories - gostls13.git/commit
spec: unsafe.Alignof/Sizeof also accept non-variable arguments
authorRobert Griesemer <gri@golang.org>
Mon, 17 Sep 2012 19:23:41 +0000 (12:23 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 17 Sep 2012 19:23:41 +0000 (12:23 -0700)
commitc7631f555f880409fb13143d0d8236ad9fb99c2c
treebc5c591df2aec746c63eed8495e2a805db1a6b48
parentaf832ac0b9609922d486f511dad04fba7a24dc44
spec: unsafe.Alignof/Sizeof also accept non-variable arguments

Both gc and gccgo permit calls such as unsafe.Sizeof(42). The
spec only permits variable arguments. This is a (backward-compatible)
spec change reflecting the status quo. Seems preferrable over
restricting the compilers.

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