static foreach is now in the new release! You can now do stuff like:

---
alias I(A...) = A;

interface Foo {
        static foreach(T; I!(int, float))
void set(T t); // define virt funcs for a list of types
}

class Ass : Foo {
        static foreach(T; I!(int, float))
                void set(T t) {
                        // simplement
                }
}
---


really easily.

Reply via email to