December 16, 2022

On Thursday, 15 December 2022 at 06:08:32 UTC, Vitaliy Fadeev wrote:

>

On Wednesday, 14 December 2022 at 17:44:05 UTC, Ali Çehreli wrote:

>

On 12/14/22 09:41, Ali Çehreli wrote:

>
// According to documentation, the handler must be

created dynamically:

>
// We make a unique owner for it:

Last try is customized std.typecons.Unique:

Customized std.typecons.Unique:

https://gist.github.com/vitalfadeev/2d25724d083a768ae63ab183211c5edc

December 16, 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.

1 2
Next ›   Last »