Mercurial > projects > ldc
comparison dmd/aggregate.h @ 806:96b404ba7eb0
Move storage of final vtbl from BaseClass to IrInterface: BaseClass instances are shared!
Always use the target's irstruct interfaceMap when building the const initializer.
Tango helloworld works again.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 30 Nov 2008 11:25:40 +0100 |
parents | 340acf1535d0 |
children | 1860414bf3b7 |
comparison
equal
deleted
inserted
replaced
805:1b23aa1fb1b5 | 806:96b404ba7eb0 |
---|---|
152 const char *kind(); | 152 const char *kind(); |
153 | 153 |
154 UnionDeclaration *isUnionDeclaration() { return this; } | 154 UnionDeclaration *isUnionDeclaration() { return this; } |
155 }; | 155 }; |
156 | 156 |
157 // warning: two classes with the same base class share the same | |
158 // BaseClass instance. | |
157 struct BaseClass | 159 struct BaseClass |
158 { | 160 { |
159 Type *type; // (before semantic processing) | 161 Type *type; // (before semantic processing) |
160 enum PROT protection; // protection for the base interface | 162 enum PROT protection; // protection for the base interface |
161 | 163 |