D - Unsafe and doomed
Walter Bright
newshound2 at digitalmars.com
Mon Jan 6 12:49:25 PST 2014
On 1/6/2014 7:01 AM, deadalnix wrote:
> I know. But his code will behave in random ways, not instant fail. This example
> show that the instant fail approach you seem to like is inherently flawed.
That code is broken whether types are nullable or not.
> Are you saying that dereferencing null must be undefined behavior, and not
> instant failure ? That contradict the position you gave before.
I've also said I think it is better to eliminate undefined behavior by defining it.
More information about the Digitalmars-d
mailing list