assignment: left-to-right or right-to-left evaluation?
jarrett.billingsley at gmail.com
Mon May 11 08:26:36 PDT 2009
On Mon, May 11, 2009 at 11:07 AM, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:
>>> mydic[x] = mydic[y] = mydic[z] = mydic.length;
> 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 :)
Funny, I vastly prefer the latter to the former. Having more than one
thing happen on one line is very difficult to read after having
written it, for me.
More information about the Digitalmars-d