Mixing operations with signed and unsigned types

Stewart Gordon smjg_1998 at yahoo.com
Wed Jun 30 18:31:43 PDT 2010

bearophile wrote:
> Stewart Gordon:
>> If we also change array indices to be signed, it would break that
>> code that sensibly uses unsigned types, which is probably worse.
> Yes, of course that code needs to be fixed after the change I have 
> suggested. A "breaking change" means that some of the old code needs to 
> be fixed.

That code needs to be "fixed"?  My point was that being forced to use 
signed types for values that cannot possibly be negative doesn't to me 
constitute fixing anything.


More information about the Digitalmars-d-learn mailing list