Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue 6998 - std.container.Array destroys class instances #2079

Merged
1 commit merged into from Apr 12, 2014
Merged

Fix Issue 6998 - std.container.Array destroys class instances #2079

1 commit merged into from Apr 12, 2014

Conversation

monarchdodra
Copy link
Collaborator

As (re)discovered here:
http://forum.dlang.org/thread/bdzwpmehiazpicftbxko@forum.dlang.org

Also fixed some more cases where we only destroyed structs (what about static arrays?). Overall, the rule of thumb is .destroy iff hasElaborateDestructor!T.

https://issues.dlang.org/show_bug.cgi?id=6998

@ghost
Copy link

ghost commented Apr 12, 2014

LGTM. I think this should be safe to merge.

@ghost
Copy link

ghost commented Apr 12, 2014

Auto-merge toggled on

ghost pushed a commit that referenced this pull request Apr 12, 2014
Fix Issue 6998 - std.container.Array destroys class instances
@ghost ghost merged commit e9e8d93 into dlang:master Apr 12, 2014
@monarchdodra monarchdodra deleted the 6998 branch April 18, 2014 06:14
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant