What    |Removed                     |Added
                 CC|                            |

--- Comment #11 from 2012-01-20 15:38:41 PST ---
Actually, it would be very cool if D would re-use the integer range trick here
and catch all cases that can be proven not to work using it, such that the
following code would error at compile time: ;)

int x;
real[2] foo = 
    x%100>50 ?
    [1.0L, 2.0L, 3.0L][0..2|x&1] :
    ([1.0L, 2.0L] ~ [3.0L, 4.0L] ~ 5.0L)[x&1..$-!(x&1)];

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to