Should the comma operator be removed in D2?

Adam D. Ruppe destructionator at gmail.com
Mon Nov 16 15:22:24 PST 2009


On Mon, Nov 16, 2009 at 05:00:56PM -0600, Ellery Newcomer wrote:
> wrong. assignment has higher precedence than comma.

Oh, duh. And I use that fact in for loops all the time too...

> change the first to
> 
> 	a = (b, c);

Right - this illustrates what I had in mind.

-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list