opAssign() still accepted for classes???

Alexander aldem+dmars at nk7.net
Fri Apr 29 16:12:37 PDT 2011


On 29.04.2011 19:19, Steven Schveighoffer wrote:

> I think he was referring to the line:
> 
> X x = 0;
> 
> Where x could not possibly be anything other than null.

Exactly. And, BTW, code

  X x;
  x = 0;

is correctly detected as a null dereference at compile time.

/Alexander


More information about the Digitalmars-d mailing list