www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - More alias usages

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
Apr 09 2011