Finding all the interfaces and their inheritance relationships at runtime

Jean-Louis Leroy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 3 06:54:42 PDT 2017


I know how to find all the classes:

     foreach (mod; ModuleInfo) {
       foreach (c; mod.localClasses) {
         // use c.base to construct inheritance graph
       }
     }

Can I do the same with all the interfaces? Looking at object.d 
gives no clue...


More information about the Digitalmars-d-learn mailing list