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

Issue 8598021: Remove isOdd/isEven from num and double interfaces. (Closed)

Created:
9 years, 1 month ago by srdjan
Modified:
9 years, 1 month ago
Reviewers:
cshapiro
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove isOdd/isEven from num and double interfaces. Committed: https://code.google.com/p/dart/source/detail?r=1760

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M corelib/src/num.dart View 1 chunk +0 lines, -2 lines 2 comments Download
M runtime/lib/double.dart View 1 chunk +0 lines, -8 lines 0 comments Download
M tests/co19/co19-runtime.status View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
9 years, 1 month ago (2011-11-18 18:36:50 UTC) #1
cshapiro
lgtm http://codereview.chromium.org/8598021/diff/1/corelib/src/num.dart File corelib/src/num.dart (right): http://codereview.chromium.org/8598021/diff/1/corelib/src/num.dart#newcode27 corelib/src/num.dart:27: bool isNaN(); As an aside, these would seem ...
9 years, 1 month ago (2011-11-18 21:14:06 UTC) #2
srdjan
9 years, 1 month ago (2011-11-18 22:42:34 UTC) #3
http://codereview.chromium.org/8598021/diff/1/corelib/src/num.dart
File corelib/src/num.dart (right):

http://codereview.chromium.org/8598021/diff/1/corelib/src/num.dart#newcode27
corelib/src/num.dart:27: bool isNaN();
On 2011/11/18 21:14:06, cshapiro wrote:
> As an aside, these would seem to belong in the double interface and not here
in
> the parent interface.

As I understand it, this is a problem of num being used for double/int mixed
usage in dart->JS systems, and isNaN is needed. isNaN correctly returns false
for integers.

Powered by Google App Engine
This is Rietveld 408576698