[Issue 2590] Deallocator is not called if constructor fails.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 5 19:14:28 PDT 2010


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



--- Comment #7 from Justin Spahr-Summers <Justin.SpahrSummers at gmail.com> 2010-04-05 21:14:23 CDT ---
(In reply to comment #6)
> 
> Not that I disagree this bug is obsolete, but what would you call delete on? 
> With the failed construction, you never got a pointer to the class data.
> 
> If class allocators were to be saved, I think the correct behavior on a failed
> constructor should be to call the deallocator.

Fair point. I didn't realize that it's impossible to hold onto the pointer.

-- 
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