comparison lphobos/object.d @ 116:fd7ad91fd713 trunk

[svn r120] ModuleInfo implementation is now almost complete. Fixed some nasty static array-initializer bugs. Fixed bug in DtoArrayLen and DtoArrayPtr for full slices of static arrays.
author lindquist
date Sun, 25 Nov 2007 18:55:52 +0100
parents 2841234d2aea
children 373489eeaf90
comparison
equal deleted inserted replaced
115:5ba6d286c941 116:fd7ad91fd713
160 160
161 class TypeInfo_Invariant : TypeInfo_Const 161 class TypeInfo_Invariant : TypeInfo_Const
162 { 162 {
163 } 163 }
164 164
165 class ModuleInfo
166 {
167 char[] name;
168 ModuleInfo[] importedModules;
169 ClassInfo[] localClasses;
170
171 uint flags; // initialization state
172
173 void function() ctor;
174 void function() dtor;
175 void function() unitTest;
176
177 // Return collection of all modules in the program.
178 static ModuleInfo[] modules();
179 }
180
165 // Recoverable errors 181 // Recoverable errors
166 182
167 class Exception : Object 183 class Exception : Object
168 { 184 {
169 string msg; 185 string msg;