Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 1700

Show
Ignore:
Timestamp:
06/30/10 21:32:51 (14 years ago)
Author:
walter
Message:

sometimes m is NULL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/phobos-1.x/phobos/internal/object.d

    r1168 r1700  
    291291    TypeInfo typeinfo; 
    292292 
    293293    /************* 
    294294     * Search all modules for ClassInfo corresponding to classname. 
    295295     * Returns: null if not found 
    296296     */ 
    297297    static ClassInfo find(char[] classname) 
    298298    { 
    299299    foreach (m; ModuleInfo.modules()) 
    300300    { 
     301        if (!m) 
     302        continue; 
    301303        //writefln("module %s, %d", m.name, m.localClasses.length); 
    302304        foreach (c; m.localClasses) 
    303305        { 
    304306        //writefln("\tclass %s", c.name); 
    305307        if (c.name == classname) 
    306308            return c; 
    307309        } 
    308310    } 
    309311    return null; 
    310312    }