Mercurial > projects > ddmd
comparison dmd/TypeInstance.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 | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
31 { | 31 { |
32 TemplateInstance tempinst; | 32 TemplateInstance tempinst; |
33 | 33 |
34 this(Loc loc, TemplateInstance tempinst) | 34 this(Loc loc, TemplateInstance tempinst) |
35 { | 35 { |
36 register(); | |
36 super(Tinstance, loc); | 37 super(Tinstance, loc); |
37 this.tempinst = tempinst; | 38 this.tempinst = tempinst; |
38 } | |
39 | |
40 version (DumbClone) { | |
41 } else { | |
42 Type clone() | |
43 { | |
44 assert(false); | |
45 } | |
46 } | 39 } |
47 | 40 |
48 override Type syntaxCopy() | 41 override Type syntaxCopy() |
49 { | 42 { |
50 //printf("TypeInstance::syntaxCopy() %s, %d\n", toChars(), idents.dim); | 43 //printf("TypeInstance::syntaxCopy() %s, %d\n", toChars(), idents.dim); |