assert semantic change proposal
via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 6 13:15:29 PDT 2014
On Wednesday, 6 August 2014 at 20:01:04 UTC, Ola Fosheim Grøstad
wrote:
> Please also remember that they are all "constants" in math, but
> variables are constants that are automatically renamed for
> convinience…
>
> uint x=0;
> x=x+1;
> x=x*2;
>
> is…
>
> uint x0=0;
> x1=x0+1;
> x2=x1*2;
>
> perhaps that makes it more clear.
As you may recall, this is also the common representation in
compilers:
http://en.wikipedia.org/wiki/Static_single_assignment_form
More information about the Digitalmars-d
mailing list