[cfe-commits] [libcxxabi] r137118 - /libcxxabi/trunk/src/cxa_exception.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sat Aug 13 02:43:11 PDT 2011


On 10.08.2011, at 03:14, John McCall wrote:

> On Aug 9, 2011, at 5:34 PM, Howard Hinnant wrote:
>> On Aug 9, 2011, at 8:24 PM, John McCall wrote:
> 
>>> As far as I understand it, Sebastian introduced dependent (i.e. wrapped) exceptions in order to support capturing and rethrowing an arbitrary, potentially foreign exception via std::exception_ptr.
>> 
>> In gcc, yes.  And it is that design, described at a high level in cxx-abi-dev, that I followed (the high level description in cxx-abi-dev, not the code in gcc).
> 
> I went and read through the cxx-abi-dev discussion, and I see the necessity of dependent exceptions now even for non-foreign exceptions.

Good. I would hate to think that I was mistaken back then and jumped through all these hoops when a simpler design was available. I never considered foreign exceptions - I don't actually think my design supports capturing them as exception_ptrs.

>  I would appreciate it if we changed the name in our implementation to "envelope exception" or something like that;  overloading "dependent" is quite unfortunate.

That sounds good. I was never really happy with my old name.

Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110813/94fec924/attachment.html>


More information about the cfe-commits mailing list