On Thursday, 23 September 2021 at 18:43:36 UTC, Steven Schveighoffer wrote: > With dmd -O -inline, there is a chance it will be collected. > Inlining is key here. never mind, GC.addRoot() looks more trustworthy, anyway :)