Changing the behavior of the comma operator

Jason King jhking at airmail.net
Wed Mar 26 02:19:42 PDT 2014


>
> The proposed change would allow the code above, but not this:
>
> for (x=1, y=2; x++, x < 10 && y < 20; y++) { ... }
>
>
> Andrei

After the change in D this code would generate a warning/error?
If that's so then the "does the same as C code or fails to
compile" objective is still being met.


More information about the Digitalmars-d mailing list