Setting a list of values

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 30 22:05:45 PDT 2016


This has no effect:
_bars.each!(a => { a._plots.fillColor = Color(255, 180, 0); });

I tried putting ..each!((ref a) =>.. with no difference

This works:
foreach(b; _bars) {
	b._plots.fillColor = Color(255, 180, 0);
}



More information about the Digitalmars-d-learn mailing list