If this is the case, would it not make sense to make it illegal to catch Errors in @safe code?
From what I understand, the difference between an Exception and
and Error is that Errors signal your program has entered into an
invalid state. For example, going past the end of an array and
attempting to access that memory. On the flip side, Exceptions
signal that something out of the ordinary happened, but with
proper handling the program can go on it's merry way. An example
being entering 13 as a month in a std.datetime.Date.
- Catching Errors Jack Stouffer via Digitalmars-d
- Re: Catching Errors Dominikus Dittes Scherkl via Digitalmars-d
- Re: Catching Errors Jacob Carlborg via Digitalmars-d
- Re: Catching Errors Jack Stouffer via Digitalmars-d
- Re: Catching Error... Jacob Carlborg via Digitalmars-d
- Re: Catching E... Dicebot via Digitalmars-d
- Re: Catching Errors Atila Neves via Digitalmars-d
- Re: Catching Error... Jacob Carlborg via Digitalmars-d
- Re: Catching Errors Jack Stouffer via Digitalmars-d
- Re: Catching Errors Dukc via Digitalmars-d
- Re: Catching Errors Jon Degenhardt via Digitalmars-d
