diff dmd/Array.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 347de076ad34
children 52188e7e3fb5
line wrap: on
line diff
--- a/dmd/Array.d	Sun Oct 10 10:38:55 2010 +0400
+++ b/dmd/Array.d	Sun Oct 17 07:42:00 2010 +0400
@@ -7,7 +7,9 @@
 import core.stdc.string;
 import core.stdc.stdlib;
 
-class Array
+import dmd.TObject;
+
+class Array : TObject
 {
 	uint dim = 0;
     uint allocdim = 0;
@@ -182,7 +184,7 @@
 	}
 }
 
-class Vector(T)
+class Vector(T) : TObject
 {
 public:
     @property final size_t dim()