Michel Fortin, el 30 de julio a las 13:36 me escribiste: > Le 2010-07-30 à 11:29, Sean Kelly a écrit : > > > Another alternative is deriving all exceptions that shouldn't show a trace > > by default from an exception with a custom toString that omits this info. > > I think we already have one: the OwnerTermianted exception. We could > use another "normal termination" exception meant to terminate the > program. The advantage over calling exit(-1) directly is that it'll > honor destructors, finally clauses, and scope(exit) statements.
I agree that using an special exception for normal termination could be a good idea because of that (I even reported an enhancement asking for that[1]). But that's a whole other discussion. > Upon catching this exception at main()'s termination, the runtime > could print its message but omit the stack trace. That is perfectly fine with me. [1] http://d.puremagic.com/issues/show_bug.cgi?id=3462 -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- SATANAS EN COMISARIA -- Crónica TV _______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
