Skip to content

Commit

Permalink
Update struct.dd
Browse files Browse the repository at this point in the history
Removed example code which used the delete keyword. The delete keyword is considered harmful.
  • Loading branch information
ralphtandetzky committed Dec 9, 2013
1 parent d9a3c0f commit c986904
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions struct.dd
Expand Up @@ -439,9 +439,6 @@ $(GNAME StructPostblit):
this(this) {
a = a.dup;
}
~this() {
delete a;
}
}
---

Expand Down Expand Up @@ -534,10 +531,6 @@ $(SECTION3 $(LNAME2 AssignOverload, Assignment Overload),
this(this) {
buf = buf.dup;
}

~this() {
delete buf;
}
}
---

Expand Down

0 comments on commit c986904

Please sign in to comment.