https://issues.dlang.org/show_bug.cgi?id=9433
--- Comment #16 from Steven Schveighoffer ---
*** Issue 11949 has been marked as a duplicate of this issue. ***
--
https://issues.dlang.org/show_bug.cgi?id=9433
--- Comment #15 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org
https://github.com/dlang/dlang.org/commit/3421e6a9904f11302719a50c033aceb68de0bf02
Fix Issue 9433 - Deprecate delete
https
https://issues.dlang.org/show_bug.cgi?id=9433
--- Comment #14 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/f88ab395386b40f544c9f74ba768549c4fa9e66f
Fix Issue 9433 - Deprecate delete
https://github.com/dlang
https://issues.dlang.org/show_bug.cgi?id=9433
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=9433
Mike changed:
What|Removed |Added
CC||slavo5...@yahoo.com
--- Comment
https://issues.dlang.org/show_bug.cgi?id=9433
Nick Treleaven changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=9433
FG h...@fgda.pl changed:
What|Removed |Added
CC||h...@fgda.pl
--- Comment #1 from FG
http://d.puremagic.com/issues/show_bug.cgi?id=9433
rswhi...@googlemail.com changed:
What|Removed |Added
CC||rswhi...@googlemail.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=9433
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #4 from rswhi...@googlemail.com 2013-01-31 08:29:13 PST ---
But you have to admit: if there is new, there should be delete also.
Because it is the natural opposite.
Even if it is unsafe, the possibility to free even GC memory by
http://d.puremagic.com/issues/show_bug.cgi?id=9433
Iain Buclaw ibuc...@ubuntu.com changed:
What|Removed |Added
CC||ibuc...@ubuntu.com
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #6 from rswhi...@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
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #8 from FG h...@fgda.pl 2013-01-31 08:49:18 PST ---
(In reply to comment #2)
Try this: [...]
I see no differences if I compare this and delete, except that delete looks
nicer. But I have not made a detailed test, like you did.
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #7 from Jonathan M Davis jmdavisp...@gmx.com 2013-01-31 08:45:41
PST ---
But you have to admit: if there is new, there should be delete also.
Because it is the natural opposite.
Except that new allocates GC memory, which is
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #9 from rswhi...@googlemail.com 2013-01-31 08:57:26 PST ---
Except that new allocates GC memory, which is supposed to be managed by the
GC.
If you want to be managing memory yourself, you should use the tools intended
for doing
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #10 from Jonathan M Davis jmdavisp...@gmx.com 2013-01-31 09:03:21
PST ---
But GC.free does not calls any DTors. That is the problem. Therefore we need
something like destruct.
So, you call destroy before you call GC.free. It's
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #11 from bearophile_h...@eml.cc 2013-01-31 10:10:24 PST ---
(In reply to comment #7)
In fact, if they were to start over, they probably wouldn't have
even had new (rather they would have had a library function which
did the same
http://d.puremagic.com/issues/show_bug.cgi?id=9433
--- Comment #12 from Jonathan M Davis jmdavisp...@gmx.com 2013-01-31 18:58:15
PST ---
I leave the deprecation of new to another enhancement request ;-)
LOL. Yeah, well, it would break far too much code for that change at this
point, so it's
18 matches
Mail list logo