http://d.puremagic.com/issues/show_bug.cgi?id=5290
timon.g...@gmx.ch changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timon.g...@gmx.ch --- Comment #11 from timon.g...@gmx.ch 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; readf("%d",&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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------