comparison dmd/VarExp.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 0c8cc2a10f99
children b0d41ff5e0df
comparison
equal deleted inserted replaced
177:1475fd394c9e 178:e3afd1303184
28 //! Variable 28 //! Variable
29 class VarExp : SymbolExp 29 class VarExp : SymbolExp
30 { 30 {
31 this(Loc loc, Declaration var, bool hasOverloads = false) 31 this(Loc loc, Declaration var, bool hasOverloads = false)
32 { 32 {
33 register();
33 super(loc, TOK.TOKvar, VarExp.sizeof, var, hasOverloads); 34 super(loc, TOK.TOKvar, VarExp.sizeof, var, hasOverloads);
34 35
35 //printf("VarExp(this = %p, '%s', loc = %s)\n", this, var.toChars(), loc.toChars()); 36 //printf("VarExp(this = %p, '%s', loc = %s)\n", this, var.toChars(), loc.toChars());
36 //if (strcmp(var.ident.toChars(), "func") == 0) halt(); 37 //if (strcmp(var.ident.toChars(), "func") == 0) halt();
37 this.type = var.type; 38 this.type = var.type;