[Issue 11949] Warning and later deprecation message for usage of delete

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 19 04:32:59 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11949


rswhite4 at googlemail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rswhite4 at googlemail.com


--- Comment #1 from rswhite4 at googlemail.com 2014-01-19 04:32:53 PST ---
I'm still against that. delete free's and finalize the memory which is quite
good. destroy (the replacement for delete) is bug prone and don't free the
underlying memory. And since the GC isn't that good, delete is still nice to
have.
AFAIK the main reason why delete was choosen to be deprecated, was, that it
makes assumptions over the allocation method, in this case the GC. But IMO that
is no valid reason because it is sometimes good to controle the GC since it is
and will not be that good in the near future.

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


More information about the Digitalmars-d-bugs mailing list