[Issue 9433] Deprecate delete

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 31 08:44:47 PST 2013


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



--- Comment #6 from rswhite4 at googlemail.com 2013-01-31 08:44:46 PST ---
(In reply to comment #5)
> (In reply to comment #4)
> > But you have to admit: if there is "new", there should be "delete" also.
> > Because it is the natural opposite.
> 
> That's a very black and white way of thinking.  Also, just because Java does it
> badly doesn't mean that all languages that use a GC are deemed for the same
> failure too - Vala, C#, Haskell, Ruby, all successful languages in their own
> right that you wouldn't think to knock off because there is no delete keyword
> for every allocation that you call 'new' on (or even implicitly calls 'new'
> on).
> 
> Iain.

That was not the main point of my post.
And that should not have much weight.
Whether it is "delete", "destroy" or "destruct" is does not matter. But we
should keep the possibility, unsafe or not, to release manually GC Memory _and_
call the DTor (of course, only if it is an object).

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