Mercurial > projects > ddmd
comparison dmd/NewAnonClassExp.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 |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
24 ClassDeclaration cd; // class being instantiated | 24 ClassDeclaration cd; // class being instantiated |
25 Expressions arguments; // Array of Expression's to call class constructor | 25 Expressions arguments; // Array of Expression's to call class constructor |
26 | 26 |
27 this(Loc loc, Expression thisexp, Expressions newargs, ClassDeclaration cd, Expressions arguments) | 27 this(Loc loc, Expression thisexp, Expressions newargs, ClassDeclaration cd, Expressions arguments) |
28 { | 28 { |
29 register(); | |
29 super(loc, TOKnewanonclass, NewAnonClassExp.sizeof); | 30 super(loc, TOKnewanonclass, NewAnonClassExp.sizeof); |
30 this.thisexp = thisexp; | 31 this.thisexp = thisexp; |
31 this.newargs = newargs; | 32 this.newargs = newargs; |
32 this.cd = cd; | 33 this.cd = cd; |
33 this.arguments = arguments; | 34 this.arguments = arguments; |