Changing the behavior of the comma operator

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Mar 25 16:08:24 PDT 2014


On Tue, Mar 25, 2014 at 12:45:26PM -0700, Andrei Alexandrescu wrote:
> On 3/25/14, 12:29 PM, captaindet wrote:
> >mwould this effect comma usage inside for-loops as well or will this be
> >special cased?
> 
> Where inside for loops? -- Andrei

	for (x=1, y=2; x < 10 && y < 20; x++, y++) { ... }

My opinion is to just special-case the syntax for for-loops.


T

-- 
Unix is my IDE. -- Justin Whear


More information about the Digitalmars-d mailing list