Libdparse needs to be updated to recognize AliasAssign declarations
    user1234 
    user1234 at 12.de
       
    Tue May  4 19:04:59 UTC 2021
    
    
  
On Tuesday, 4 May 2021 at 18:59:05 UTC, Paul Backus wrote:
> On Tuesday, 4 May 2021 at 18:48:21 UTC, user1234 wrote:
>>
>> Am i wrong to think that even without this rule the difference 
>> could be made during semantic by testing if the assign lhs is 
>> an alias ?
>
> That would break existing code. For example:
>
>     void main() {
>         int x = 123;
>         int y = 456;
>         alias z = x;
>         z = y; // runtime assignment
>         assert(x == 456);
>     }
You can make the difference tho. z is not a type or a 
compile-time sequence.
    
    
More information about the Digitalmars-d
mailing list