Mercurial > projects > ldc
diff lphobos/std/moduleinit.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 | ccca1c13e13a |
children | 56a21f3e5d3e |
line wrap: on
line diff
--- a/lphobos/std/moduleinit.d Sun Nov 25 03:58:55 2007 +0100 +++ b/lphobos/std/moduleinit.d Sun Nov 25 18:55:52 2007 +0100 @@ -18,29 +18,8 @@ // 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 {