Doug Royer wrote:
> No, try/catch does not trap division by zero unless the underlying
> implementation throws an error there is nothing to catch.
> 
I am absolutely 100% sure that you can catch int/0 with a try catch
handler (in c++) on windows platforms (when compiled with ms/borland
compiler).  All these weird issues are a direct result of windows's dos
legacy.  Try it and see.

Merlin

Mon, 10 Mar 2003 16:57:35 -0500
"Merlin Moncure" <merlin.moncure@rcsonline.com>
Re: [GENERAL] division by zero
Merlin Moncure wrote:
> Doug Royer wrote:
> 
>>No, try/catch does not trap division by zero unless the underlying
>>implementation throws an error there is nothing to catch.
>>
> 
> I am absolutely 100% sure that you can catch int/0 with a try catch
> handler (in c++) on windows platforms (when compiled with ms/borland
> compiler).  All these weird issues are a direct result of windows's dos
> legacy.  Try it and see.


That must be a Microsoft extension - it is not standard c++.


-- 

  Doug Royer                     |   http://INET-Consulting.com
  -------------------------------|-----------------------------
  Doug@Royer.com                 | Office: (208)612-INET
  http://Royer.com/People/Doug   |    Fax: (866)594-8574
                                 |   Cell: (208)520-4044

                 We Do Standards - You Need Standards
Mon, 10 Mar 2003 15:09:08 -0700
Doug Royer <Doug@Royer.com>
Re: [GENERAL] division by zero