Destructor order

eles via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 22 15:56:53 PDT 2014


On Wednesday, 22 October 2014 at 18:03:44 UTC, anonymous wrote:
> On Wednesday, 22 October 2014 at 15:45:02 UTC, eles wrote:

> `foo` should be a `Scoped!A`. When it's typed as `A`, the
> `Scoped!A` that is returned by `scoped`, is destructed
> immediately (and the reference leaks, I guess).

Just tell me that's a feature, not a bug...


More information about the Digitalmars-d-learn mailing list