Phobos vs Tango! What's your opinion?

James Dennett jdennett at acm.org
Wed Apr 18 21:36:43 PDT 2007


Sean Kelly wrote:
> Paolo Invernizzi wrote:
>> Very very very cool! We'll use it for sure in our C++ works!
>> But is it really doable in D?
>> What about the casts? Or about the GC, and the throws in the
>> destructors when the Likely goes out of scope?
> 
> I haven't looked at the slides yet, but it is illegal to throw an
> exception from a dtor in D, just as in C++. 

It's not illegal in C++, just generally ill-advised
as it will terminate() the program if it occurs
during stack unwinding while another exception is
active.

-- James



More information about the Digitalmars-d mailing list