How to use destroy and free.

Dukc ajieskola at gmail.com
Sat Apr 30 12:05:51 UTC 2022


On Saturday, 30 April 2022 at 11:37:32 UTC, Tejas wrote:
> Hell, just using `scope int[] i` should be enough to trigger 
> deterministic destruction, no? `typecons`'s `Scoped!` template 
> can be used if 100% guarantee is needed _and_ the memory has to 
> be stack allocated

Didn't think of that. To be frank, I don't know if `scope int[] 
i` means deterministic destruction. `Scoped` does IIRC.


More information about the Digitalmars-d-learn mailing list