Top 5

bearophile bearophileHUGS at lycos.com
Tue Oct 28 10:04:51 PDT 2008


Max Samukha:
>     alias Tuple!(1, int, "string") t;
>     const l = t.length; // have to use temporary because of a bug
>     foreach (i; Range!(l)) {
>         static if (is(t[i]))

This may be enough (not tested):

foreach (el; Tuple!(1, int, "string")) {
    static if (is(el))

Bye,
bearophile



More information about the Digitalmars-d mailing list