deprecated delete and manual memory management
Steven Schveighoffer
schveiguy at yahoo.com
Wed Apr 27 13:42:52 PDT 2011
On Wed, 27 Apr 2011 16:37:49 -0400, so <so at so.so> wrote:
> For the confusion part, the real confusion (rather shock) awaits when
> they get to the part where they see "new" but no "delete".
> We could argue against this all the way, but to every single of us "new"
> and "delete" are a pair.
For non-garbage-collected languages, yes. For GC languages, delete is to
be discouraged (that is what the GC is for).
Java and C# code do not have much use for delete either, so people coming
from those languages will feel right at home without the delete keyword I
would think.
-Steve
More information about the Digitalmars-d
mailing list