Mercurial > projects > ddmd
comparison dmd/UnionDeclaration.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 |
---|---|
4 import dmd.StructDeclaration; | 4 import dmd.StructDeclaration; |
5 import dmd.Loc; | 5 import dmd.Loc; |
6 import dmd.Identifier; | 6 import dmd.Identifier; |
7 import dmd.Dsymbol; | 7 import dmd.Dsymbol; |
8 | 8 |
9 import dmd.DDMDExtensions; | |
10 | |
9 class UnionDeclaration : StructDeclaration | 11 class UnionDeclaration : StructDeclaration |
10 { | 12 { |
13 mixin insertMemberExtension!(typeof(this)); | |
14 | |
11 this(Loc loc, Identifier id) | 15 this(Loc loc, Identifier id) |
12 { | 16 { |
13 register(); | 17 register(); |
14 super(loc, id); | 18 super(loc, id); |
15 } | 19 } |