On Mon, 11 May 2009 09:37:56 -0400, Georg Wrede <[email protected]> wrote:
Steven Schveighoffer wrote:
For example:
mydic[x] = mydic[y] = mydic[z] = mydic.length;
I distinctly remember Walter discouraging chained assignments in the
doccs, already in the very early versions of D.
Seriously? So the correct method is to do this:
auto tmp = mydic.length;
mydic[x] = tmp;
mydic[y] = tmp;
mydic[z] = tmp;
???
That sucks. We have to remember, there are reasons why we stopped having
to use assembly :)
-Steve