A different vector op

bearophile bearophileHUGS at lycos.com
Fri Jul 1 19:12:32 PDT 2011


Currently this is not allowed, but do you desire a feature like this?


struct Foo {
    int x, y;
    int[100] array;
}
void main() {
    auto foos = new Foo[100];
    foos[].y += 10; // ***
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list