opAssign() still accepted for classes???

Alexander aldem+dmars at nk7.net
Fri Apr 29 09:14:05 PDT 2011


On 29.04.2011 17:05, Steven Schveighoffer wrote:

> x = y is equivalent to x.opAssign(y).  So x is null, you are dereferencing a null pointer.

  Second thought... Since compiler *knows* that the pointer is null at this point, shouldn't it produce a warning at least?

/Alexander


More information about the Digitalmars-d mailing list