[Issue 11060] delete gives InvalidMemoryOperationError

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 17 23:13:04 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11060



--- Comment #2 from thelastmammoth at gmail.com 2013-09-17 23:13:03 PDT ---
(In reply to comment #1)
> Please read the spec.

It would be helpful if you could be more specific.


* as I wrote in the bug report, why is 'clear' not deprecated even though spec
says it should be by december 2012? (and it's also in several phobos modules)

* according to http://dlang.org/memory.html, 'If there is a delete(), there
should be a corresponding new()'
In my example, there is no new() function, so why does it even compile?

* according to Jonathan Davis (see email "allocate array with new"): "No.
_Never_ use delete. It's going to be deprecated". 

* in http://dlang.org/deprecate.html#delete, it says delete will be deprecated
at a later time.

* a number of phobos modules use delete.

So all in all the spec is not very clear to me, and maybe to others as well.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list