www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Remove docs on 'new' and 'delete'?

reply =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= <xtzgzorex gmail.com> writes:
Someone on IRC just pointed out that the docs for new and delete are 
still present: http://dlang.org/memory.html#newdelete

Considering how often this particular section misleads people, and that 
we're going to deprecate new/delete overloading anyway, wouldn't it be a 
good idea to get rid of that section ASAP?

-- 
- Alex
Apr 20 2012
parent reply "Jakob Ovrum" <jakobovrum gmail.com> writes:
On Saturday, 21 April 2012 at 06:55:21 UTC, Alex Rønne Petersen 
wrote:
 Someone on IRC just pointed out that the docs for new and 
 delete are still present: http://dlang.org/memory.html#newdelete

 Considering how often this particular section misleads people, 
 and that we're going to deprecate new/delete overloading 
 anyway, wouldn't it be a good idea to get rid of that section 
 ASAP?
I have a local branch rewriting the memory page to compose with emplace()/clear() instead; I had a pull request up for a while, but I closed it because clear() isn't documented yet. I don't think we should remove that section until its alternative is fully ready. (My branch also has some other fixes for that page, maybe I should send a pull request for those changes separately...)
Apr 21 2012
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 4/21/12, Jakob Ovrum <jakobovrum gmail.com> wrote:
 I have a local branch rewriting the memory page to compose with
 emplace()/clear() instead; I had a pull request up for a while,
 but I closed it because clear() isn't documented yet. I don't
 think we should remove that section until its alternative is
 fully ready.

 (My branch also has some other fixes for that page, maybe I
 should send a pull request for those changes separately...)
I've made a note about delete being deprecated in the classes page: https://github.com/D-Programming-Language/d-programming-language.org/pull/112 I think you could make your pull request for the memory page to close the circle. :)
Apr 21 2012