From ... From: Erik Naggum Subject: Re: Theory #51 (superior(?) programming languages) Date: 1997/01/21 Message-ID: <3062850267355805@naggum.no>#1/1 X-Deja-AN: 211375388 references: <3059948144828413@naggum.no> <5bu19l$ld2@sue.cc.uregina.ca> <3062757753734625@naggum.no> <1997Jan2108.28.23.6335@koobera.math.uic.edu> mail-copies-to: never organization: Naggum Software; +47 2295 0313; http://www.naggum.no newsgroups: comp.arch,comp.lang.lisp,comp.lang.scheme * Erik Naggum | _I'd_ like a _low-level_ language to handle integer overflow, or at least | give me access to this absolutely _vital_ information. C doesn't. * D. J. Bernstein | unsigned long u; | unsigned long v; | | ... | | v += u; | if (v < u) overflow(); thank you. you prove my point most eloquently: C does not give programmers access to arithmetic condition known as "overflow". as I said, A+1 is either A+1, 0 or -(A+1) in C. you can test which of these values you get, but you cannot detect overflow in the general case. obviously, that claim cannot be refuted by producing one _more_ special case. #\Erik -- 1,3,7-trimethylxanthine -- a basic ingredient in quality software.