[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.
This commit is contained in:
Tomas Lindquist Olsen
2007-11-25 18:55:52 +01:00
parent c08b0918cc
commit cb37aab93b
12 changed files with 331 additions and 176 deletions
+2 -23
View File
@@ -18,29 +18,8 @@ enum
// ctors being done first
}
/***********************
* Information about each module.
*/
class ModuleInfo
{
char[] name;
ModuleInfo[] importedModules;
ClassInfo[] localClasses;
uint flags; // initialization state
void function() ctor;
void function() dtor;
void function() unitTest;
/******************
* Return collection of all modules in the program.
*/
static ModuleInfo[] modules()
{
return _moduleinfo_array;
}
}
// had to move the class to object.d, as its declaration is needed in the compiler code,
// otherwise the DMDFE Module::moduleinfo member is NULL
class ModuleCtorError : Exception
{