crystal clear()

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Sep 17 14:59:15 PDT 2010


On 09/17/2010 04:55 PM, Steven Schveighoffer wrote:
> On Fri, 17 Sep 2010 17:33:11 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> I think clear() can be fixed if we remove the call to the constructor
>> AND obliterate the vptr.
>
> agreed.
>
>> In fact ideally we'd obliterate all vptrs of the object, which might
>> be tricky. Ideas?
>
> There's only one vptr, no?

One global (at the beginning of the object) plus one per implemented 
interface.

Andrei


More information about the Digitalmars-d mailing list