Array type conversion
Manfred Nowak
svv1999 at hotmail.com
Mon Apr 30 15:07:35 PDT 2007
Thomas Kuehne wrote
> Below is a simplified sample:
> # base = derived; // <- this is the issue
That assignment above is totally useless, unless one wants to drop some
data, that can only be hold by derived.
But if one drops some of that data, every access through derived might
behave unpredictable.
The obvious fault is, that derived is not nulled immeditely after that
assignment in order to prevent every further access.
Is that what the compiler is supposed to do automatically: null out the
RHS as a side effect?
-manfred
More information about the Digitalmars-d
mailing list