Catching Errors

Kapps via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 19 18:02:01 PST 2017


On Friday, 20 January 2017 at 01:24:18 UTC, Jon Degenhardt wrote:
> On Thursday, 19 January 2017 at 14:29:46 UTC, Jack Stouffer 
> wrote:
>> [...]
>
> I think this is an area of D I haven't explored yet. 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?
>
> --Jon

It indicates a programming error. If you attempted to read past 
the end, what other invalid data did you end up actually 
succeeding reading?


More information about the Digitalmars-d mailing list