3 ms·
I might be misunderstanding something, but this is how it works in D: struct Pair(A, B) { A fst; B snd; } Pair!(int, float) p; // declaration of p as
by WalterBright 2y ago
I might be misunderstanding something, but this is how it works in D:
struct Pair(A, B) { A fst; B snd; }
Pair!(int, float) p; // declaration of p as instance of Pair
It's just a struct with the addition of type parameters.