Mercurial > projects > ddmd
comparison dmd/InterState.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 | e28b18c23469 |
children |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
4 import dmd.FuncDeclaration; | 4 import dmd.FuncDeclaration; |
5 import dmd.Dsymbol; | 5 import dmd.Dsymbol; |
6 import dmd.Expression; | 6 import dmd.Expression; |
7 import dmd.Statement; | 7 import dmd.Statement; |
8 | 8 |
9 class InterState | 9 import dmd.TObject; |
10 | |
11 class InterState : TObject | |
10 { | 12 { |
11 this() | 13 this() |
12 { | 14 { |
15 register(); | |
13 vars = new Dsymbols(); | 16 vars = new Dsymbols(); |
14 } | 17 } |
15 | 18 |
16 InterState caller; // calling function's InterState | 19 InterState caller; // calling function's InterState |
17 FuncDeclaration fd; // function being interpreted | 20 FuncDeclaration fd; // function being interpreted |