Walter's talk on D backend

Walter Bright newshound2 at digitalmars.com
Mon Sep 23 05:36:18 UTC 2024


On 9/22/2024 3:55 AM, claptrap wrote:
> Can more than one elem reference the same (lvalue) variable? Eg..
> 
> int x = 100;
> x = x+1;
> x = y+1;

Yes.

> That's three different elem, but do they all have the same 'x' as their target?

The single assignment refers to the value of the elem tree node, not the value 
of the variables.



More information about the Digitalmars-d mailing list