Mercurial > projects > ldc
comparison lphobos/internal/objectimpl.d @ 473:373489eeaf90
Applied downs' lphobos update
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 19:28:49 +0200 |
parents | a2c2c3c1a73d |
children | eef8ac26c66c |
comparison
equal
deleted
inserted
replaced
472:15c804b6ce77 | 473:373489eeaf90 |
---|---|
1130 uint flags; // initialization state | 1130 uint flags; // initialization state |
1131 | 1131 |
1132 void function() ctor; | 1132 void function() ctor; |
1133 void function() dtor; | 1133 void function() dtor; |
1134 void function() unitTest; | 1134 void function() unitTest; |
1135 | |
1136 void* xgetMembers; | |
1137 void function() ictor; | |
1135 | 1138 |
1136 /****************** | 1139 /****************** |
1137 * Return collection of all modules in the program. | 1140 * Return collection of all modules in the program. |
1138 */ | 1141 */ |
1139 static ModuleInfo[] modules() | 1142 static int opApply(int delegate(ref ModuleInfo) dg) { |
1140 { | 1143 foreach (ref mod; std.moduleinit._moduleinfo_array) |
1141 return std.moduleinit._moduleinfo_array; | 1144 if (auto i = dg(mod)) return i; |
1142 } | 1145 return 0; |
1143 } | 1146 } |
1147 } | |
1148 | |
1149 struct ModuleReference | |
1150 { | |
1151 ModuleReference* next; | |
1152 ModuleInfo mod; | |
1153 } | |
1154 extern(C) ModuleReference* _Dmodule_ref; | |
1144 | 1155 |
1145 /** | 1156 /** |
1146 * All recoverable exceptions should be derived from class Exception. | 1157 * All recoverable exceptions should be derived from class Exception. |
1147 */ | 1158 */ |
1148 class Exception : Object | 1159 class Exception : Object |
1187 this.next = next; | 1198 this.next = next; |
1188 } | 1199 } |
1189 } | 1200 } |
1190 | 1201 |
1191 //extern (C) int nullext = 0; | 1202 //extern (C) int nullext = 0; |
1192 |