Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Issue 8276005: Implement List.getRange. (Closed)

Created:
9 years, 2 months ago by ngeoffray
Modified:
9 years, 2 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement List.getRange. Committed: https://code.google.com/p/dart/source/detail?r=403

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -4 lines) Patch
M compiler/lib/implementation/array.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M compiler/lib/implementation/arrays.dart View 1 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/lib/array.dart View 1 2 chunks +6 lines, -2 lines 0 comments Download
M runtime/lib/arrays.dart View 1 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
A tests/corelib/src/ListGetRangeTest.dart View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ngeoffray
9 years, 2 months ago (2011-10-13 16:08:10 UTC) #1
floitsch
LGTM. http://codereview.chromium.org/8276005/diff/1/compiler/lib/implementation/array.dart File compiler/lib/implementation/array.dart (right): http://codereview.chromium.org/8276005/diff/1/compiler/lib/implementation/array.dart#newcode194 compiler/lib/implementation/array.dart:194: return new List<T>.fromList(this, start, start + length); We ...
9 years, 2 months ago (2011-10-13 16:15:14 UTC) #2
ngeoffray
9 years, 2 months ago (2011-10-13 16:16:41 UTC) #3
Thanks,

http://codereview.chromium.org/8276005/diff/1/compiler/lib/implementation/arr...
File compiler/lib/implementation/array.dart (right):

http://codereview.chromium.org/8276005/diff/1/compiler/lib/implementation/arr...
compiler/lib/implementation/array.dart:194: return new List<T>.fromList(this,
start, start + length);
On 2011/10/13 16:15:14, floitsch wrote:
> We should really think of unifying the API.
> [start, length] here, but [start, end] there?

Yes, after the range methods have been implemented, I will clean up the
Array/List mess.

Powered by Google App Engine
This is Rietveld 408576698