Mercurial > projects > ddmd
comparison dmd/TypeArray.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 | af724d3510d7 |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
25 | 25 |
26 class TypeArray : TypeNext | 26 class TypeArray : TypeNext |
27 { | 27 { |
28 this(TY ty, Type next) | 28 this(TY ty, Type next) |
29 { | 29 { |
30 register(); | |
30 super(ty, next); | 31 super(ty, next); |
31 } | 32 } |
32 | 33 |
33 override Expression dotExp(Scope sc, Expression e, Identifier ident) | 34 override Expression dotExp(Scope sc, Expression e, Identifier ident) |
34 { | 35 { |
125 e = Type.dotExp(sc, e, ident); | 126 e = Type.dotExp(sc, e, ident); |
126 } | 127 } |
127 e = e.semantic(sc); | 128 e = e.semantic(sc); |
128 return e; | 129 return e; |
129 } | 130 } |
130 | |
131 version (DumbClone) { | |
132 } else { | |
133 Type clone() | |
134 { | |
135 assert(false); | |
136 } | |
137 } | 131 } |
138 } |