~= call copy ctor?

Mafi mafi at example.org
Sun Jul 22 09:27:16 PDT 2012


> On the other hand, calling the destructor is still acceptable 
> in D because it may be important for the programmer to run the 
> contents earlier than GC would. clear() does that:
>
>     auto t = new Test(f3);
>     // ...
>     clear(t);    // <-- Run the destructor
>
> Unfortunately it has a bad name, which is going to be changed.
>
> Ali

Really? I thought we have to stay with this name now. In my
opinion this name is quite bad, especially in the presence of
UFCS. What is going to be changed to? destroy()?

Mafi




More information about the Digitalmars-d-learn mailing list