Mercurial > projects > ddmd
comparison dmd/TypeInfoInvariantDeclaration.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | e3afd1303184 |
children |
comparison
equal
deleted
inserted
replaced
186:1a0c1126bc46 | 187:b0d41ff5e0df |
---|---|
6 import dmd.TypeInfoDeclaration; | 6 import dmd.TypeInfoDeclaration; |
7 import dmd.backend.dt_t; | 7 import dmd.backend.dt_t; |
8 import dmd.backend.Util; | 8 import dmd.backend.Util; |
9 import dmd.backend.TYM; | 9 import dmd.backend.TYM; |
10 | 10 |
11 import dmd.DDMDExtensions; | |
12 | |
11 version(DMDV2) | 13 version(DMDV2) |
12 class TypeInfoInvariantDeclaration : TypeInfoDeclaration | 14 class TypeInfoInvariantDeclaration : TypeInfoDeclaration |
13 { | 15 { |
16 mixin insertMemberExtension!(typeof(this)); | |
17 | |
14 this(Type tinfo) | 18 this(Type tinfo) |
15 { | 19 { |
16 register(); | 20 register(); |
17 super(tinfo, 0); | 21 super(tinfo, 0); |
18 type = global.typeinfoinvariant.type; | 22 type = global.typeinfoinvariant.type; |