Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/lphobos/object.d Sun Nov 25 03:58:55 2007 +0100 +++ b/lphobos/object.d Sun Nov 25 18:55:52 2007 +0100 @@ -162,6 +162,22 @@ { } +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(); +} + // Recoverable errors class Exception : Object