pass-by-ref semantics for structs (was Deque impl.)
Maxim Fomin
maxim at maxim-fomin.ru
Thu Jan 31 11:22:24 PST 2013
On Thursday, 31 January 2013 at 18:59:20 UTC, Steven
Schveighoffer wrote:
> Structs by default are easily destroyed from the stack, but
> lack the fundamental cogs to get GC-based destruction.
>
> -Steve
Perhaps _d_newitemT() and buddies can check whether it creates
structs, store a collection of pointers to structs it allocates
and at the end of program some druntime routine loops through out
of the collection to run dtors?
More information about the Digitalmars-d
mailing list