]> Cypherpunks repositories - gostls13.git/commit
spec: clarify re-use of underlying arrays in slice operations
authorRobert Griesemer <gri@golang.org>
Wed, 16 Oct 2013 23:16:54 +0000 (16:16 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 16 Oct 2013 23:16:54 +0000 (16:16 -0700)
commit15da997c7eab0ce461e6daa8cdb8e8a495dde074
treea672900c50954b879e1d4503554f2f97afa06ef2
parent37db8804691f0a5e618cbc041909895c9709263c
spec: clarify re-use of underlying arrays in slice operations

Please note the slight rewording for append: The spec now
requires that append reuses the underlying array if it is
sufficiently large. Per majority sentiment.

This is technically a language change but the current
implementation always worked this way.

Fixes #5818.
Fixes #5180.

R=rsc, iant, r, ken, minux.ma, dan.kortschak, rogpeppe, go.peter.90
CC=golang-dev
https://golang.org/cl/14419054
doc/go_spec.html