]> Cypherpunks repositories - gostls13.git/commit
spec: index of non-addressable array is not addressable
authorRuss Cox <rsc@golang.org>
Mon, 24 May 2010 21:31:43 +0000 (14:31 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 24 May 2010 21:31:43 +0000 (14:31 -0700)
commite7561de09af6ffc3b3fa6cbc83d92ed945098cd8
tree433d8c6f9bd2a7aa584d0ebf17976f5e07d26971
parent21518ea2af400995475ea627b2c56421ca91777b
spec: index of non-addressable array is not addressable

Motivated by:

func f() []int
func g() [10]int

f()[1] = 1  // ok
g()[1] = 1 // ERROR

R=gri
CC=golang-dev
https://golang.org/cl/1278041
doc/go_spec.html