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 28 class IntValue : Value
29 29 {
30 30 BigInt data;
31 31 mixin SimpleConstructor;
32 32 mixin SimpleCompare;
33 33 override string toString() const {
34 - const(char)[] cs; data.toString((const(char)[] s){cs=s;}, null);
35 - return to!string(cs);
34 + return std.bigint.toDecimalString(cast(BigInt)data);
36 35 }
37 36 }
38 37
39 38 class StrValue : Value
40 39 {
41 40 string data;
42 41 mixin SimpleConstructor;