Odd Destructor Behavior

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 7 14:04:27 PST 2016


On 07.02.2016 22:49, Matt Elkins wrote:
>  From this non-reduced situation, does anything jump out? Am I missing
> something about struct lifetimes? This is the only place I instantiate a
> TileView.

Looks weird. I presume this doesn't happen with simpler constructor 
parameters/arguments, like int instead of Texture.Handle? I don't see 
how the parameter types would make a destructor call appear. Might be a bug.

Can you post the code for Texture, makeInputStream, etc, so that we have 
a full, reproducible test case?


More information about the Digitalmars-d-learn mailing list