Enum inheritance

Witold Baryluk baryluk at smp.if.uj.edu.pl
Wed Aug 15 10:54:06 PDT 2007



Or better:

template EE(E0a, E0b) {
        const EE = "{ "~Ehelper(__traits(allMembers, E0a)) ~ ", " ~
Ehelper(__traits(allMembers, E0b)) ~ " }";
}


mixin("enum E3 "~EE!(E1, E2));



-- 
Witold Baryluk
MAIL: baryluk at smp.if.uj.edu.pl, baryluk at mpi.int.pl
JID: movax at jabber.autocom.pl



More information about the Digitalmars-d mailing list