comparison lphobos/object.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 fd7ad91fd713
children 88e23f8c2354
comparison
equal deleted inserted replaced
472:15c804b6ce77 473:373489eeaf90
1
2 // Implementation is in internal\object.d 1 // Implementation is in internal\object.d
3 2
4 module object; 3 module object;
5 4
6 //alias bit bool; 5 //alias bit bool;
171 uint flags; // initialization state 170 uint flags; // initialization state
172 171
173 void function() ctor; 172 void function() ctor;
174 void function() dtor; 173 void function() dtor;
175 void function() unitTest; 174 void function() unitTest;
175 void* xgetMembers;
176 void function() ictor;
176 177
177 // Return collection of all modules in the program. 178 // Return collection of all modules in the program.
178 static ModuleInfo[] modules(); 179 static int opApply(int delegate(ref ModuleInfo));
179 } 180 }
181
182 struct ModuleReference {
183 ModuleReference* next;
184 ModuleInfo mod;
185 }
186 extern(C) extern ModuleReference* _Dmodule_ref;
180 187
181 // Recoverable errors 188 // Recoverable errors
182 189
183 class Exception : Object 190 class Exception : Object
184 { 191 {
196 Error next; 203 Error next;
197 204
198 this(string msg); 205 this(string msg);
199 this(string msg, Error next); 206 this(string msg, Error next);
200 } 207 }
201