Optional type - how to correctly reset a wrapped immutable T
aliak
something at something.com
Tue Mar 27 06:27:18 UTC 2018
On Monday, 26 March 2018 at 11:19:31 UTC, Seb wrote:
> On Monday, 26 March 2018 at 10:13:08 UTC, Simen Kjærås wrote:
>> On Monday, 26 March 2018 at 09:46:57 UTC, Nicholas Wilson
>> wrote:
>>> Have a look at Rebindable:
>>> https://dlang.org/phobos/std_typecons.html#rebindable
>>
>> Allow me to quote from aliak's post:
>>
>>> what I'm looking for is a Rebindable implementation that's
>>> for value types
>>
>> As can be surmised from the above line, aliak has looked at
>> Rebindable, and it doesn't work with value types.
>>
>> --
>> Simen
>
> Though Rebindable could be improved to work with value types:
>
> https://github.com/dlang/phobos/pull/6136
And of course Seb knows about a related PR :p Will take a look to
see what kind of magic is in there. Thanks !
More information about the Digitalmars-d-learn
mailing list