Manual memory management in D2

Vladimir Panteleev vladimir at thecybershadow.net
Tue Jul 13 11:12:23 PDT 2010


On Tue, 13 Jul 2010 18:30:26 +0300, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> I agree deprecation shouldn't be taken lightly, but delete is not a  
> fundamental operator - it could and should be defined at most as a  
> simple function.

delete is the antipod of new. With this logic, I don't see why new  
shouldn't be replaced with a function as well - after all, all it does is  
allocation and initialization, as opposed to delete's destruction and  
deallocation.

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list