Discussion Thread: DIP 1040--Copying, Moving, and Forwarding--Community Review Round 1

12345swordy alexanderheistermann at gmail.com
Sun Mar 14 01:44:19 UTC 2021


On Saturday, 13 March 2021 at 21:09:33 UTC, deadalnix wrote:
> On Saturday, 13 March 2021 at 19:47:35 UTC, 12345swordy wrote:
>> On Saturday, 13 March 2021 at 03:06:35 UTC, Walter Bright 
>> wrote:
>>> On 3/11/2021 10:56 AM, 12345swordy wrote:
>>>> How does it handle move constructors when a class have 
>>>> struct type variable that is being alias this?
>>>
>>> #DIP1040 only applies to structs, not classes.
>>
>> That doesn't answer the question. How does the DIP interact 
>> with the current alias this system?
>> If I alias this a struct variable with move schematics in 
>> struct/class definition called A, does A have the move 
>> schematics of the struct variable? Replying "only applied to 
>> structs and not classes" isn't helpful here. I am not talking 
>> about defining move schematics for classes, I am talking about 
>> the class inheriting the struct that has move schematics 
>> defined, via alias this.
>>
>> - Alex
>
> Considering alias this is just an identifier resolution rule, 
> why would you expect any interaction whatsoever with move 
> semantics?

You are making an argument from silence fallacy, if you are 
asserting that there is no interaction between move semantics 
with alias this by the virtue of not being mentioning in the dip 
at all.

- Alex


More information about the Digitalmars-d mailing list