safety: null checks

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Mon Nov 23 01:36:38 UTC 2020


On Monday, 23 November 2020 at 01:26:15 UTC, ag0aep6g wrote:
> The reference implementation treats null as a safe value. Yes, 
> that can imply additional checks at run time. That's what 
> Walter chose, for better or worse.

It traps null dereferencing unless the object is very large.

I think it should state clearly whether that is portable or 
specific for Posix-like systems. Does it require explicit null 
check conditionals on platforms that do not provide traps?

That is what has to be clarified.


More information about the Digitalmars-d mailing list