[Issue 2341] Double destruction without intervening copy

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 8 07:03:38 PDT 2008


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





------- Comment #1 from brunodomedeiros+bugz at gmail.com  2008-09-08 09:03 -------
Shouldn't the correct output be:

Created object from scratch: 45
Copying object: 45
Destroying object: 45
Destroying object: 45

? 
After all, the postblit in the "B(a)" expression must run before foo's scope
ends and "a" is destroyed, right?


-- 



More information about the Digitalmars-d-bugs mailing list