Move construction from !is(T == typeof(this))

Jack Applegame via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 25 03:06:48 PDT 2017


On Tuesday, 25 April 2017 at 08:53:22 UTC, Stanislav Blinov wrote:
> On Tuesday, 25 April 2017 at 07:58:43 UTC, Jack Applegame wrote:
>> On Monday, 24 April 2017 at 18:48:00 UTC, Stanislav Blinov 
>> wrote:
>>> Suddenly, we can't copy the pointer, or at least make a 
>>> shallow copy of it, without violating const, and the latter 
>>> is UB.
>>
>> Because transitive const/immutable is shit. And that shit had 
>> to introduce another shit - Rebindable. D const/immutable 
>> system is very big PITA. I hate it.
>
> Don't use it then. Life is so exciting when everything may 
> change at any time.

I can't. I need immutable pointers to mutable data and vica 
versa. D const system is better then nothing.


More information about the Digitalmars-d mailing list