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

Unified Diff: lib/core/double.dart

Issue 10876100: Convert double interface into abstract class (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/double.dart
===================================================================
--- lib/core/double.dart (revision 11629)
+++ lib/core/double.dart (working copy)
@@ -4,24 +4,28 @@
// Dart core library.
-interface double extends num {
+// TODO: Convert this abstract class into a concrete class double
+// that uses the patch class functionality to account for the
+// different platform implementations.
+
+abstract class double implements num {
static final double NAN = 0.0 / 0.0;
static final double INFINITY = 1.0 / 0.0;
static final double NEGATIVE_INFINITY = -INFINITY;
// Specialization of super-interface. Double is contagious. We can therefore
// specialize more methods than in other num sub-interfaces.
- double remainder(num other);
- double operator +(num other);
- double operator -(num other);
- double operator *(num other);
- double operator %(num other);
- double operator /(num other);
- double operator ~/(num other);
- double operator negate();
- double abs();
- double round();
- double floor();
- double ceil();
- double truncate();
+ abstract double remainder(num other);
+ abstract double operator +(num other);
+ abstract double operator -(num other);
+ abstract double operator *(num other);
+ abstract double operator %(num other);
+ abstract double operator /(num other);
+ abstract double operator ~/(num other);
+ abstract double operator negate();
+ abstract double abs();
+ abstract double round();
+ abstract double floor();
+ abstract double ceil();
+ abstract double truncate();
}
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698