Mercurial > projects > ddmd
diff dmd/TypeNext.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 | 14feb7ae01a6 |
children | b0d41ff5e0df |
line wrap: on
line diff
--- a/dmd/TypeNext.d Sun Oct 10 10:38:55 2010 +0400 +++ b/dmd/TypeNext.d Sun Oct 17 07:42:00 2010 +0400 @@ -16,23 +16,11 @@ this(TY ty, Type next) { + register(); super(ty); this.next = next; } -version (DumbClone) { -} else { - final TypeNext cloneTo(TypeNext t) - { - super.cloneTo(t); - return t; - } - TypeNext clone() - { - assert(this.classinfo == TypeNext.classinfo); - return cloneTo(new TypeNext(ty, next)); - } -} override void toDecoBuffer(OutBuffer buf, int flag) { super.toDecoBuffer(buf, flag);