Catching Errors
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 19 18:11:41 PST 2017
On Friday, 20 January 2017 at 01:24:18 UTC, Jon Degenhardt wrote:
> Is there a place in the docs that describe the difference
> between errors and exceptions? As to the particular example,
> why is it unsafe to recover from attempting to access memory
> past the end of the array, as long as the access was prevented?
It is just that Errors are not necessarily *thrown*. The
implementation is allowed to immediately abort on them too - your
catch has no guarantee to actually run, whereas with Exceptions,
they are.
More information about the Digitalmars-d
mailing list