Changeset 1700
- Timestamp:
- 06/30/10 21:32:51 (14 years ago)
- Files:
-
- branches/phobos-1.x/phobos/internal/object.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/phobos-1.x/phobos/internal/object.d
r1168 r1700 291 291 TypeInfo typeinfo; 292 292 293 293 /************* 294 294 * Search all modules for ClassInfo corresponding to classname. 295 295 * Returns: null if not found 296 296 */ 297 297 static ClassInfo find(char[] classname) 298 298 { 299 299 foreach (m; ModuleInfo.modules()) 300 300 { 301 if (!m) 302 continue; 301 303 //writefln("module %s, %d", m.name, m.localClasses.length); 302 304 foreach (c; m.localClasses) 303 305 { 304 306 //writefln("\tclass %s", c.name); 305 307 if (c.name == classname) 306 308 return c; 307 309 } 308 310 } 309 311 return null; 310 312 }
