Phobos is now compiled with -preview=dip1000
ag0aep6g
anonymous at example.com
Fri May 17 17:05:21 UTC 2019
On 17.05.19 14:10, Meta wrote:
> Your explanation was fine, but I need a good solution, other than
> wrapping the array assignment in @trusted.
I see. As far as I understand DIP 1000, it's not supposed to enable your
use case without having to use `@trusted`.
DIP 1000 stops at heap allocations. It just assumes infinite lifetime
for them. If you want to restrict the lifetime of a heap allocation (in
your case: tie it to the lifetime of a struct), you have to do it manually.
More information about the Digitalmars-d-announce
mailing list