]> Cypherpunks repositories - gostls13.git/commit
spec: clarify when constant slice indices must be in range
authorRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2014 01:11:13 +0000 (17:11 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2014 01:11:13 +0000 (17:11 -0800)
commit6ffd2351618b5c61a78ac9d78779868627dfd358
treedf262ae56ac47c1adb15fc03c1b99e94fc22a0d8
parentf4359afa7f7886541a51c44cefee39250a202d65
spec: clarify when constant slice indices must be in range

This documents the status quo for most implementations,
with one exception: gc generates a run-time error for
constant but out-of-range indices when slicing a constant
string. See issue 7200 for a detailed discussion.

LGTM=r
R=r, rsc, iant, ken
CC=golang-codereviews
https://golang.org/cl/72160044
doc/go_spec.html