Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Scott Schindler <notcorrect@whocares.com>
Subject: Re: c++ exception handling
Date: Mon, 09 Feb 2004 14:41:39 GMT	[thread overview]
Message-ID: <D_MVb.2$DT5.1@dfw-service2.ext.ray.com> (raw)
In-Reply-To: 87bro8e6bb.fsf@student.uni-tuebingen.de

Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> wrote in
news:87bro8e6bb.fsf@student.uni-tuebingen.de: 

> Scott Schindler <notcorrect@whocares.com> writes:
> 
>> I am trying to test an exception handling scheme in c++ on a unix
>> machine (uname -a produces the following output: OSF1 *removed* V5.1
>> 1885 alpha alpha)
>> 
>>                   int numerator(100);
>>                   int denominator(0);
>>                   // Should cause an exception to occur.
> 
> The C++ language says behaviour of division by zero is undefined; some
> environments produce an exception for it, but you cannot rely on that
> for portable programs.
> 
>> I am not sure that I want to implement the second method.  Is there
>> a pure c++ way of having the program catch the exception.
> 
> No.
> 

Thank you,

Scott


      reply	other threads:[~2004-02-09 14:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 21:47 c++ exception handling Scott Schindler
2004-02-09 11:03 ` Steffen Neumann
2004-02-09 13:15   ` Scott Schindler
2004-02-09 13:22 ` Falk Hueffner
2004-02-09 14:41   ` Scott Schindler [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox