[M3devel] integer overflow and for loops

Tony Hosking hosking at cs.purdue.edu
Wed Jan 13 03:18:59 CET 2010


> http://www.roland-illig.de/articles/modula-3-for-loop.pdf

This assumes that overflow checks should be defined on integers in the language.  Rather than making things special for FOR loops it would mean general overflow checks on all integer arithmetic in the language.  I think this is an unacceptable overhead for a systems programming language.  C does not have it.  The characteristics of restricted range integer arithmetic are well understood.  If programmers want overflow checking it should be compiled/configured (using FloatMode) on the side (without tying the language spec down).




More information about the M3devel mailing list