[RFC] Throwing an exception with null pointers
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Apr 13 21:45:08 UTC 2025
On 13/04/2025 9:48 PM, Ogion wrote:
> On Saturday, 12 April 2025 at 23:11:41 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> I've been looking once again at having an exception being thrown on
>> null pointer dereferencing.
>
> Why `Exception` and not `Error`?
Neither of them.
The former has language specific behavior, and the latter has
implementation specific behavior that isn't suitable for catching by
read barriers.
More information about the Digitalmars-d
mailing list