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

Side by Side Diff: lib/core/double.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/core/date.dart ('k') | lib/core/duration.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Dart core library. 5 // Dart core library.
6 6
7 // TODO: Convert this abstract class into a concrete class double 7 // TODO: Convert this abstract class into a concrete class double
8 // that uses the patch class functionality to account for the 8 // that uses the patch class functionality to account for the
9 // different platform implementations. 9 // different platform implementations.
10 10
11 abstract class double implements num { 11 abstract class double implements num {
12 static final double NAN = 0.0 / 0.0; 12 static const double NAN = 0.0 / 0.0;
13 static final double INFINITY = 1.0 / 0.0; 13 static const double INFINITY = 1.0 / 0.0;
14 static final double NEGATIVE_INFINITY = -INFINITY; 14 static const double NEGATIVE_INFINITY = -INFINITY;
15 15
16 // Specialization of super-interface. Double is contagious. We can therefore 16 // Specialization of super-interface. Double is contagious. We can therefore
17 // specialize more methods than in other num sub-interfaces. 17 // specialize more methods than in other num sub-interfaces.
18 abstract double remainder(num other); 18 abstract double remainder(num other);
19 abstract double operator +(num other); 19 abstract double operator +(num other);
20 abstract double operator -(num other); 20 abstract double operator -(num other);
21 abstract double operator *(num other); 21 abstract double operator *(num other);
22 abstract double operator %(num other); 22 abstract double operator %(num other);
23 abstract double operator /(num other); 23 abstract double operator /(num other);
24 abstract double operator ~/(num other); 24 abstract double operator ~/(num other);
25 abstract double operator negate(); 25 abstract double operator negate();
26 abstract double abs(); 26 abstract double abs();
27 abstract double round(); 27 abstract double round();
28 abstract double floor(); 28 abstract double floor();
29 abstract double ceil(); 29 abstract double ceil();
30 abstract double truncate(); 30 abstract double truncate();
31 } 31 }
OLDNEW
« no previous file with comments | « lib/core/date.dart ('k') | lib/core/duration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698