creating a variadic interface

JS js.mdnq at gmail.com
Mon Jul 8 02:34:45 PDT 2013


this may seem a bit nonsensical but it is just an example:

interface A(T, S...)
{
    ... Generate a getter for each type in S...
    // e.g., @property S[0] property1();
    //       @property S[1] property2();
    // ....
}

I imagine I have to use a mixin template but I'm unsure how to 
create a static loop that can be used properly.

I think maybe using mixin's of mixin's is possible but I can't 
think of any simple way. Any ideas?


More information about the Digitalmars-d-learn mailing list