Expression evaluation order

deadalnix deadalnix at gmail.com
Thu Jun 13 17:53:58 PDT 2013


On Friday, 14 June 2013 at 00:13:37 UTC, Jonathan M Davis wrote:
> I don't see how the assignment operator could possibly work 
> left-to-right,
> though I could see how there might be a question with regards 
> to whether
> what's on the left of the assignment operator would be 
> evaluated before what's
> on the right when what's on the left is an expression rather 
> than a variable.

SDC compute the address of the reciever, then the value on the 
right, and finally store it to the address. I don't see any major 
issue here.


More information about the Digitalmars-d mailing list