From: Nils Lohmann Newsgroups: comp.os.msdos.djgpp Subject: exception-handling Date: Mon, 27 Apr 1998 12:13:02 GMT Organization: Technische Universtaet Hamburg-Harburg Lines: 60 Message-ID: <19980427.12130299@MYHOSTNAME> Reply-To: lohmann AT tu-harburg DOT d400 DOT de NNTP-Posting-Host: s10.dialin.tu-harburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit Precedence: bulk Does anybody know why teh following code taken out of Stroustrup: Die C++ Programmiersprache Terminates whith ABORT and doen't use the Exception Handler for range errors. Compiler : DJGPP, GCC2.80, CWSDPMI V4.0 --------------------------------------------------------- #include class Range_error { public: int i; Range_error(int ii) { i=ii; } }; char to_char(int i) { char c=i&static_cast(-1); if (i!=c)throw Range_error(i); return(c); } void main() { while (true) { cout<>i; try { char c =to_char(i); cout<