TDPL: Manual invocation of destructor
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Aug 9 20:22:42 PDT 2010
Michel Fortin wrote:
> On 2010-08-09 21:20:31 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> said:
>
>> clear() would not subvert the type system.
>
> Oh sure it does!
>
> 1. You acknowledged yourself one of my argument a few days ago that if
> the class has an immutable member it'll be wiped out. Someone else
> somewhere could have a reference to that member, and it's value will
> change which could cause bad things...
I forgot that argument again :o). I acknowledge being destroyed (which
is strictly worse than cleared...)
Andrei
More information about the Digitalmars-d
mailing list