comparison dmd/TypeDArray.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 fa9a71a9f5a8
children 190ba98276b3
comparison
equal deleted inserted replaced
177:1475fd394c9e 178:e3afd1303184
41 // Dynamic array, no dimension 41 // Dynamic array, no dimension
42 class TypeDArray : TypeArray 42 class TypeDArray : TypeArray
43 { 43 {
44 this(Type t) 44 this(Type t)
45 { 45 {
46 register();
46 super(TY.Tarray, t); 47 super(TY.Tarray, t);
47 //printf("TypeDArray(t = %p)\n", t); 48 //printf("TypeDArray(t = %p)\n", t);
48 } 49 }
49 50
50 version (DumbClone) {
51 } else {
52 Type clone()
53 {
54 assert(false);
55 }
56 }
57 override Type syntaxCopy() 51 override Type syntaxCopy()
58 { 52 {
59 Type t = next.syntaxCopy(); 53 Type t = next.syntaxCopy();
60 if (t == next) 54 if (t == next)
61 t = this; 55 t = this;