Files
ldc/gen
Frits van Bommel e7b3f5415f Make "aa[key]" use the same runtime call as "key in aa". The runtime calls
these were using were different, but with equivalent definitions.

With `ldc -O3`, the following functions now all compile to the exact same code:
{{{
int[int] y;
void foo(int x) {
    if (x in y) {
        auto z = x in y;
        sink(*z);
    }
}

void bar(int x) {
    if (x in y) {
        sink(y[x]);
    }
}

void baz(int x) {
    if (auto p = x in y) {
        sink(*p);
    }
}
}}}
2009-05-25 12:50:40 +02:00
..
2009-05-16 13:50:44 +02:00
2008-10-06 22:54:08 +02:00
2009-04-15 20:06:25 +02:00
2009-04-15 20:06:25 +02:00
2008-10-06 22:54:08 +02:00
2009-03-12 20:37:27 +01:00
2009-04-12 12:52:01 +02:00
2009-05-07 15:33:06 +02:00
2009-05-07 15:33:06 +02:00
2009-03-29 19:19:32 +02:00
2009-05-17 16:31:23 +02:00
2009-05-17 04:41:10 +02:00
2009-05-17 04:41:10 +02:00
2009-05-02 11:58:50 +02:00
2009-04-25 18:26:54 +02:00