comparison dmd/StructDeclaration.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 cd48cb899aee
children
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
65 import dmd.backend.FL; 65 import dmd.backend.FL;
66 import dmd.backend.glue; 66 import dmd.backend.glue;
67 67
68 import std.stdio; 68 import std.stdio;
69 69
70 import dmd.DDMDExtensions;
71
70 class StructDeclaration : AggregateDeclaration 72 class StructDeclaration : AggregateDeclaration
71 { 73 {
74 mixin insertMemberExtension!(typeof(this));
75
72 bool zeroInit; // true if initialize with 0 fill 76 bool zeroInit; // true if initialize with 0 fill
73 77
74 version (DMDV2) { 78 version (DMDV2) {
75 int hasIdentityAssign; // !=0 if has identity opAssign 79 int hasIdentityAssign; // !=0 if has identity opAssign
76 FuncDeclaration cpctor; // generated copy-constructor, if any 80 FuncDeclaration cpctor; // generated copy-constructor, if any