True disposable objects (add "Finalized!" assertion)
Simen Kjaeraas
simen.kjaras at gmail.com
Sat May 5 14:12:14 PDT 2012
On Fri, 04 May 2012 21:07:20 +0200, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:
> On Fri, 04 May 2012 14:50:06 -0400, Simen Kjaeraas
> <simen.kjaras at gmail.com> wrote:
>
>> I believe the idea was that it'd blow up if you use it unwisely. clear
>> might
>> do that, but if you're unlucky, it'll 'work' just fine, giving you
>> problems
>> later.
>
> clear zeros out the vtable, so it's highly unlikely it "just works".
Final functions still work, as they don't need the vtable.
More information about the Digitalmars-d
mailing list