Signed word lengths and indexes

Don nospam at nospam.com
Tue Jun 15 08:51:03 PDT 2010


Walter Bright wrote:
> bearophile wrote:
>> Python integers don't overflow,
>> this at the same time allows you to safe
>> brain time and brain power thinking about possible overflows and the 
>> code to
>> avoid their risk, and makes coding more relaxed. And if you try to 
>> write 50
>> Project Euler programs in Python and D you will surely see how many 
>> bugs the
>> Python code has avoided you compared to D. Finding and fixing such 
>> bugs in D
>> code requires lot of time that you save in Python.
> 
> This is where we differ. I very rarely have a bug due to overflow or 
> signed/unsigned differences.

One was fixed in this week's DMD release.

http://www.dsource.org/projects/dmd/changeset/491

It's interesting to think how this could have been avoided.


More information about the Digitalmars-d mailing list