Program logic bugs vs input/environmental errors

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 13:14:43 PDT 2014


On 9/28/2014 12:33 PM, Jacob Carlborg wrote:
> On 2014-09-28 19:36, Walter Bright wrote:
>
>> I suggest removal of stack trace for exceptions, but leaving them in for
>> asserts.
>
> If you don't like the stack track, just wrap the "main" function in a try-catch
> block, catch all exceptions and print the error message.

That's what the runtime that calls main() is supposed to do.



More information about the Digitalmars-d mailing list