Unique!struct bug - Re: unique_ptr | Unique for autoclose handle

Nick Treleaven nick at geany.org
Fri Dec 16 18:02:34 UTC 2022


On Thursday, 15 December 2022 at 20:12:12 UTC, Ali Çehreli wrote:
> I think this is a bug because the documentation clearly talks 
> about destroying the object:

OK: https://github.com/dlang/phobos/pull/8651

> >  do we need to do some kind of deprecation?
>
> The behavior is so different from the intention that I don't 
> think anybody is using Unique anyway. :o)

Yes, at least for structs.


More information about the Digitalmars-d-learn mailing list