[RFC] Throwing an exception with null pointers

a11e99z a at a.com
Mon Apr 14 10:01:45 UTC 2025


On Monday, 14 April 2025 at 09:49:27 UTC, a11e99z 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.
>
> null pointer in x86 is any pointer less than 0x00010000
>
> imo need to dig into .net source and grab their option

almost same problem is misaligned access:
x86/x64 allows this except few instructions
ARM - prohibit it (as I know)

it seems there are no other options except to handle kernel 
signals and WinSEH


More information about the Digitalmars-d mailing list