Mixing operations with signed and unsigned types
michal.minich at gmail.com
Tue Jun 29 16:50:35 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.
Why on the earth should array indexes and lengths be signed !!! My brain
just explodes when I think of something like that.
More information about the Digitalmars-d-learn