[Issue 10093] wrong unsigned arithmetic

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 16 12:44:38 PDT 2013


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



--- Comment #7 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-05-16 12:44:36 PDT ---
(In reply to comment #6)
> We're talking about:
> uint len = strlen(text);
> // ...
> Func(-len); // Why would you ever need this?

What about Func(1 - len)

The compiler can't cover every case.  If you want to propose something to make
this illegal, go ahead, but I doubt you will get traction.

-- 
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