struct dtor never called, what's wrong?

Andrea Fontana nospam at example.com
Fri Jun 15 15:18:04 UTC 2018


On Friday, 15 June 2018 at 15:10:54 UTC, Steven Schveighoffer 
wrote:
> I tried using -vcg-ast, and see an interesting lowering:
>
> for (; !__r115.empty(); __r115.popFront())
> {
>     ref A r = __r115.front();
> ...
>

Also for std.array:array?

I don't get where it is using foreach with refs.
Can be this [1] the problem instead?

[1] https://github.com/dlang/phobos/blob/master/std/array.d#L126

Andrea


More information about the Digitalmars-d mailing list