Mixing operations with signed and unsigned types

Michal Minich michal.minich at gmail.com
Tue Jun 29 16:53:29 PDT 2010

On Tue, 29 Jun 2010 19:42:45 -0400, bearophile wrote:

> Stewart Gordon:
>> http://d.puremagic.com/issues/show_bug.cgi?id=259
> I have added my vote there a lot of time ago. I think Andrei says that
> fixing this is unworkable, but I don't know why. If you make this an
> error and at the same time turn array indexes/lengths into signed
> values, you don't have that many unsigned values in normal D programs,
> so you need very few casts and it becomes workable.
> Bye,
> bearophile

I voted for the bug, but IMO it should be fixed by other means as making 
array indexes and lengths signed. It makes no sense for me, and would 
probably affect lot of code.

More information about the Digitalmars-d-learn mailing list