Files
ldc/runtime/internal
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
..
2008-12-27 16:07:23 +01:00
2008-10-22 14:55:33 +02:00
2008-12-15 21:09:33 +01:00
2009-03-18 15:20:07 +01:00
2009-05-02 16:39:26 +02:00
2009-05-16 22:21:31 +02:00
2008-08-21 15:19:45 +02:00
2008-10-22 14:55:33 +02:00
2009-05-02 16:39:26 +02:00
2008-10-22 14:55:33 +02:00