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 destructorUnfortunately 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