Signed word lengths and indexes

bearophile bearophileHUGS at lycos.com
Mon Jun 14 17:19:43 PDT 2010


bearophile:
> 2) I don't like D to silently gulp down expressions that mix signed and
> unsigned integers and spit out wrong results when the integers were negative.

Walter, answering something similar:
>Andrei and I went down that alley for a while. It's not practical.

OK. Then just removing as many unsigned words as possible from normal code (you can see this as the code you want to write in SafeD) can be an alternative. The indexes and lengths are a common source of unsigned word usage inside SafeD programs.

Bye,
bearophile


More information about the Digitalmars-d mailing list