[RFC] Throwing an exception with null pointers
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Apr 13 21:45:46 UTC 2025
On 14/04/2025 9:45 AM, Richard (Rikki) Andrew Cattermole wrote:
> 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.
err, thrown by read barriers and then caught.
More information about the Digitalmars-d
mailing list