Class Array in D?

Jeroen Bollen jbinero at gmail.com
Wed Nov 20 10:12:54 PST 2013


is there a way I can pass a TypeTulip to a function?
Something like:

Can I create a class array in D? Something like:

interface A {}
class AA: A {}
class AB: A {}
class AC: A {}

ClassList!A list = new ClassList!A {AA, AB, AC};

void testf(ulong testv) {
     A a = new list[testv];
}

I know about TypeTuple but that doesn't allow setting a 
requirement does it?


More information about the Digitalmars-d-learn mailing list