Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(345)

Issue 72160044: code review 72160044: spec: clarify when constant slice indices must be in range (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by gri
Modified:
11 years ago
Reviewers:
r, gobot
CC:
r, rsc, iant, ken2, golang-codereviews
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r 4784aeee8b4a https://code.google.com/p/go/ #

Patch Set 3 : diff -r 4784aeee8b4a https://code.google.com/p/go/ #

Patch Set 4 : diff -r 9d9e19c22a11 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M doc/go_spec.html View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to ...
11 years ago (2014-03-06 22:02:02 UTC) #1
gri
I'm proposing this spec change for 1.3, and conversion of issue 7200 into a gc ...
11 years ago (2014-03-06 22:03:14 UTC) #2
r
LGTM
11 years ago (2014-03-06 23:10:11 UTC) #3
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=8a975cf68c20 *** spec: clarify when constant slice indices must be in range ...
11 years ago (2014-03-07 01:11:27 UTC) #4
gobot
11 years ago (2014-03-07 02:15:49 UTC) #5
Message was sent while issue was closed.
This CL appears to have broken the linux-arm-cheney-panda builder.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b