Differences From Artifact [2eb228662dba6e2d]:
- File
polemy/runtime.d
- 2010-11-07 15:03:38 - part of checkin [820e7198cc] on branch trunk - Made helloworld work. (user: kinaba) [annotate]
To Artifact [0d0a3e76147a101b]:
- File
polemy/runtime.d
- 2010-11-07 16:31:52 - part of checkin [633e700889] on branch trunk - If-expression implemented. Factorial now works. (user: kinaba) [annotate]
27 27
28 class IntValue : Value 28 class IntValue : Value
29 { 29 {
30 BigInt data; 30 BigInt data;
31 mixin SimpleConstructor; 31 mixin SimpleConstructor;
32 mixin SimpleCompare; 32 mixin SimpleCompare;
33 override string toString() const { 33 override string toString() const {
34 const(char)[] cs; data.toString((const(char)[] s){cs=s;}, null); | 34 return std.bigint.toDecimalString(cast(BigInt)data);
35 return to!string(cs); <
36 } 35 }
37 } 36 }
38 37
39 class StrValue : Value 38 class StrValue : Value
40 { 39 {
41 string data; 40 string data;
42 mixin SimpleConstructor; 41 mixin SimpleConstructor;