Libdparse needs to be updated to recognize AliasAssign declarations
Paul Backus
snarwin at gmail.com
Tue May 4 18:59:05 UTC 2021
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);
}
More information about the Digitalmars-d
mailing list