From c986904ff39ff0558c007e5fa400a55bce4e5d03 Mon Sep 17 00:00:00 2001 From: ralphtandetzky Date: Mon, 9 Dec 2013 13:00:56 +0100 Subject: [PATCH] Update struct.dd Removed example code which used the delete keyword. The delete keyword is considered harmful. --- struct.dd | 7 ------- 1 file changed, 7 deletions(-) diff --git a/struct.dd b/struct.dd index 0098540f57..0dec138d64 100644 --- a/struct.dd +++ b/struct.dd @@ -439,9 +439,6 @@ $(GNAME StructPostblit): this(this) { a = a.dup; } - ~this() { - delete a; - } } --- @@ -534,10 +531,6 @@ $(SECTION3 $(LNAME2 AssignOverload, Assignment Overload), this(this) { buf = buf.dup; } - - ~this() { - delete buf; - } } ---