Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[qvto-dev] Nested exception handlers (was Re: QVT 1.2 RTF Ballot 3 preview 2)

Hi Sergey

After a little thought, I agree completely. The Issue 19178 resolution is rubbish.  C++ prohibits nested exceptions in destructors, not in handlers. QVTo has no destructors so there is no analoguous problem.

Unfortunately a little thought takes us past the end of the ballot. I'm investigating what can now be done to avoid this going into 1.2.

    Regards

        Ed Willink

On 05/02/2014 16:35, Sergey Boyko wrote:
Issue 19178: What happens when an exception is thrown by an exception handler.

Absolutely unrelated topic. QVTo takes Java approach so nested exception is allowed and processed normally. 
Link to C++ is misinterpreted. Nested exceptions certainly are allowed and widely used in C++.

It seems that proposed resolution implied SEH (Structured Exception Handling, SEH) exceptions instead of typed C++.  SEH comes from OS and was designed for C. MSDN says "Structured exception handling works with C and C++ source files. However, it is not specifically designed for C++." So they are definitely not an example for QVTo.

The issue should be closed (not resolved).



Back to the top