Evaluation order of index expressions

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue May 26 10:48:24 PDT 2015


On Tuesday, 26 May 2015 at 12:51:20 UTC, Timon Gehr wrote:
> I guess overloaded operators could be made to cache the old 
> value. (As they do in CTFE, apparently. :o))
>
> However, this seems like overkill. Any other ideas?

They can but it wouldn't fix anything. The rvalue is already 
evaluated by then.


More information about the Digitalmars-d mailing list