Mercurial > projects > ddmd
comparison dmd/TypeTypeof.d @ 178:e3afd1303184
Many small bugs fixed
Made all classes derive from TObject to detect memory leaks (functionality is disabled for now)
Began work on overriding backend memory allocations (to avoid memory leaks)
author | korDen |
---|---|
date | Sun, 17 Oct 2010 07:42:00 +0400 |
parents | 60bb0fe4563e |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
20 { | 20 { |
21 Expression exp; | 21 Expression exp; |
22 | 22 |
23 this(Loc loc, Expression exp) | 23 this(Loc loc, Expression exp) |
24 { | 24 { |
25 register(); | |
25 super(TY.Ttypeof, loc); | 26 super(TY.Ttypeof, loc); |
26 this.exp = exp; | 27 this.exp = exp; |
27 } | 28 } |
28 | |
29 version (DumbClone) { | |
30 } else { | |
31 Type clone() | |
32 { | |
33 assert(false); | |
34 } | |
35 } | |
36 | 29 |
37 override Type syntaxCopy() | 30 override Type syntaxCopy() |
38 { | 31 { |
39 //printf("TypeTypeof.syntaxCopy() %s\n", toChars()); | 32 //printf("TypeTypeof.syntaxCopy() %s\n", toChars()); |
40 TypeTypeof t; | 33 TypeTypeof t; |