More alias usages

bearophile bearophileHUGS at lycos.com
Sat Apr 9 05:28:48 PDT 2011


Inside "static if" blocks do you feel the need of more kinds of alias, like this?

void main() {
    int[] array;
    int index;
    alias array.length A;
    alias 0            B;
    alias index-1      C; // hard to do
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list