Re: [GENERAL] division by zero
От | Doug Royer |
---|---|
Тема | Re: [GENERAL] division by zero |
Дата | |
Msg-id | 3E6D0553.6000600@Royer.com обсуждение исходный текст |
Ответ на | Re: [GENERAL] division by zero ("Merlin Moncure" <merlin.moncure@rcsonline.com>) |
Список | pgsql-hackers |
Merlin Moncure wrote: > > > __try and __except, as far as I can tell are the only way to gracefully > handle certain events. There is also a __finally. This is very much a > Microsoft hack to C and not C++. > > GetExceptionCode() is from the win32 api. > > In C++, you get to use the much more standard try/catch system. No, try/catch does not trap division by zero unless the underlying implementation throws an error there is nothing to catch. On Unix's trap for signal SIGFPE - standard POSIX. -- 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
В списке pgsql-hackers по дате отправления: