[Issue 2434] Need a way to add casts into array operations.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 13 12:51:47 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=2434



--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-07-13 12:46:35 PDT ---
Hm, I take it back.  This doesn't compile on D2, so maybe range propagation
isn't smart enough.

int x = 1;
byte b = 1 / x;

Same error reported

Now I really don't know why D2 passes the array operation...

I still think the right solution is allowing casting in an array expression.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list