D - Unsafe and doomed
Walter Bright
newshound2 at digitalmars.com
Mon Jan 6 13:09:44 PST 2014
On 1/6/2014 1:03 PM, Walter Bright wrote:
> On 1/6/2014 11:21 AM, deadalnix wrote:
>> Or, we can decide that trapping in not guaranteed, and then dereferencing null
>> is undefined behavior,
>> which is much worse that a compile time failure.
>
> Realistically, this is a non-problem.
Or better, if you want to issue a pull request for the documentation that says
unless it is a dead load, a null reference will cause a program-ending fault of
one sort or another, I'll back it.
More information about the Digitalmars-d
mailing list