SafeD doesn't prevent me from dereferencing a null reference
IGotD-
nise at nise.com
Thu Aug 18 21:12:35 UTC 2022
On Thursday, 18 August 2022 at 21:04:56 UTC, Johan wrote:
> On Thursday, 18 August 2022 at 15:37:54 UTC, Yutori wrote:
>> and since dereferencing null will always result in a page fault
>
> This is not true, but the D community treats it as true.
>
> -Johan
Please explain. Is it because of null + offset this might lead to
corrupted data but is it even allowed in safe mode?
More information about the Digitalmars-d
mailing list