[Issue 2341] Double destruction without intervening copy
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 8 07:45:52 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2341
------- Comment #2 from andrei at metalanguage.com 2008-09-08 09:45 -------
(In reply to comment #1)
> 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?
>
Correct, thank you.
--
More information about the Digitalmars-d-bugs
mailing list