Diff
Not logged in

Differences From Artifact [43e26264d772abeb]:

To Artifact [dc69a053821951bd]:


27 27 this(long n) { this.data = n; } 28 28 this(BigInt n) { this.data = n; } 29 29 this(string n) { this.data = BigInt(n); } 30 30 override string toString() const { return toDecimalString(cast(BigInt)data); } 31 31 override int opCmp(Object rhs) { 32 32 if(auto r = cast(IntValue)rhs) return data.opCmp(r.data); 33 33 if(auto r = cast(Value)rhs) return typeid(this).opCmp(typeid(r)); 34 - throw genex!RuntimeException(LexPosition.dummy, "comparison with value and somithing other"); 34 + throw genex!RuntimeException("comparison with value and somithing other"); 35 35 } 36 36 mixin SimpleToHash; 37 37 } 38 38 39 39 /// 40 40 class StrValue : Value 41 41 { ................................................................................ 42 42 string data; 43 43 44 44 mixin SimpleConstructor; 45 45 override string toString() const { return data; } 46 46 override int opCmp(Object rhs) { 47 47 if(auto r = cast(StrValue)rhs) return typeid(string).compare(&data, &r.data); 48 48 if(auto r = cast(Value)rhs) return typeid(this).opCmp(typeid(r)); 49 - throw genex!RuntimeException(LexPosition.dummy, "comparison with value and somithing other"); 49 + throw genex!RuntimeException("comparison with value and somithing other"); 50 50 } 51 51 mixin SimpleToHash; 52 52 } 53 53 54 54 /// 55 55 class UndefinedValue : Value 56 56 { 57 57 mixin SimpleConstructor; 58 58 override string toString() const { return "<undefined>"; } 59 59 override int opCmp(Object rhs) { 60 60 if(auto r = cast(StrValue)rhs) return 0; 61 61 if(auto r = cast(Value)rhs) return typeid(this).opCmp(typeid(r)); 62 - throw genex!RuntimeException(LexPosition.dummy, "comparison with value and somithing other"); 62 + throw genex!RuntimeException("comparison with value and somithing other"); 63 63 } 64 64 mixin SimpleToHash; 65 65 } 66 66 67 67 /// 68 68 abstract class FunValue : Value 69 69 {