Replacing delete or forbidding it in detriment of a safer alternative function indeed makes sense when compiling in the SafeD language subset. However, the delete operation has a well defined role in "unsafe" D. The most advantageous would be adding clear() as well as a possible "destroy()" function, but keeping the delete operation legal, and forbid it in SafeD mode only.
- Re: Manual memory management... Vladimir Panteleev
- Re: Manual memory management... Andrei Alexandrescu
- Re: Manual memory management... Andrei Alexandrescu
- Re: Manual memory management... Vladimir Panteleev
- Re: Manual memory management... Andrei Alexandrescu
- Re: Manual memory management... Andrei Alexandrescu
- Re: Manual memory management... bearophile
- Re: Manual memory management... Andrei Alexandrescu
- Re: Manual memory management... bearophile
- Re: Manual memory management... Vladimir Panteleev
- Re: Manual memory management... Francisco Almeida
- Re: Manual memory management... Bruno Medeiros
- Re: Manual memory management... Andrei Alexandrescu
- Re: Manual memory management in D2 Lars T. Kyllingstad
- Re: Manual memory management in D2 Sean Kelly
- Re: Manual memory management in D2 Petr
- Re: Manual memory management in D2 Robert M. Münch
- Re: Manual memory management in D2 Andrei Alexandrescu
- Re: Manual memory management in D2 bearophile
- Re: Manual memory management in D2 Vladimir Panteleev
- Re: Manual memory management in D2 bearophile
