[Issue 9139] `destroy` is dangerous and inconsistent

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 10 11:46:09 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9139



--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-12-10 22:46:08 MSK ---
A proposal how to fix this:
1. Create a function that equals to "out of scope" action as proposed in Issue
9137.
2. Remove any "out of scope" behavior from `destroy`.
3. Note in `destroy` documentation that it doesn't do any "out of scope like"
actions and one have to use other function for such manual lifetime
implementation.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list