Re: OT: g++ ignoring try/catch blocks?
Indeed, Roger, an excellent explanation. Thank you very much.
As a bit of background, the tutorial is written some years ago and I
have found the C++ standard has tightened a few things which has
enhanced my learning! Also, the author uses MS VC++ even though the
book is aimed at the C++ standard of the time. It's likely that the
code was not tested on Unix/Linux although sometimes he will note some
differences between the platforms which indicates some feedback if not
personal experience. Fortunately, the tutorial is not MS VC++ centric
as near as I can tell. It's likely, then, that the try{} block in the
program was able to intercept the exception on MS Windows at that time.
Thanks again.
- Nate >>
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more: http://www.n0nb.us
Reply to: