Mixing operations with signed and unsigned types
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:
> 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.
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