Mercurial > projects > ddmd
comparison dmd/TypeidExp.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 | af1bebfd96a4 |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
20 { | 20 { |
21 Object obj; | 21 Object obj; |
22 | 22 |
23 this(Loc loc, Object o) | 23 this(Loc loc, Object o) |
24 { | 24 { |
25 register(); | |
25 super(loc, TOK.TOKtypeid, TypeidExp.sizeof); | 26 super(loc, TOK.TOKtypeid, TypeidExp.sizeof); |
26 this.obj = o; | 27 this.obj = o; |
27 } | 28 } |
28 | 29 |
29 version (DumbClone) { | |
30 } else { | |
31 Type clone() | |
32 { | |
33 assert(false); | |
34 } | |
35 } | |
36 override Expression syntaxCopy() | 30 override Expression syntaxCopy() |
37 { | 31 { |
38 return new TypeidExp(loc, objectSyntaxCopy(obj)); | 32 return new TypeidExp(loc, objectSyntaxCopy(obj)); |
39 } | 33 } |
40 | 34 |