Mercurial > projects > dwt2
comparison base/src/java/lang/Float.d @ 88:9e0ab372d5d8
Revert from TypeInfo/ClassInfo to java.lang.Class
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 19 Apr 2009 11:10:09 +0200 |
parents | fcf926c91ca4 |
children | e944a4cf537b |
comparison
equal
deleted
inserted
replaced
87:8594250b1d1c | 88:9e0ab372d5d8 |
---|---|
1 module java.lang.Float; | 1 module java.lang.Float; |
2 | 2 |
3 import java.lang.util; | 3 import java.lang.util; |
4 import java.lang.exceptions; | 4 import java.lang.exceptions; |
5 import java.lang.Number; | 5 import java.lang.Number; |
6 import java.lang.Class; | |
6 | 7 |
7 class Float : Number { | 8 class Float : Number { |
8 | 9 |
9 public static float POSITIVE_INFINITY = (1.0f / 0.0f); | 10 public static float POSITIVE_INFINITY = (1.0f / 0.0f); |
10 public static float NEGATIVE_INFINITY = ((-1.0f) / 0.0f); | 11 public static float NEGATIVE_INFINITY = ((-1.0f) / 0.0f); |
38 implMissing( __FILE__, __LINE__ ); | 39 implMissing( __FILE__, __LINE__ ); |
39 return 0.0f; | 40 return 0.0f; |
40 } | 41 } |
41 } | 42 } |
42 | 43 |
43 private static TypeInfo TYPE_; | 44 private static Class TYPE_; |
44 public static TypeInfo TYPE(){ | 45 public static Class TYPE(){ |
45 if( TYPE_ is null ){ | 46 if( TYPE_ is null ){ |
46 TYPE_ = typeid(float); | 47 TYPE_ = Class.fromType!(float); |
47 } | 48 } |
48 return TYPE_; | 49 return TYPE_; |
49 } | 50 } |
50 | 51 |
51 public byte byteValue(){ | 52 public byte byteValue(){ |