assignment: left-to-right or right-to-left evaluation?

Steven Schveighoffer schveiguy at yahoo.com
Mon May 11 05:41:36 PDT 2009


On Mon, 11 May 2009 08:20:07 -0400, Manfred Nowak <svv1999 at hotmail.com>  
wrote:

> Michel Fortin wrote:
>
>>           arra[i++] = arrb[j]; // how can the compiler issue an
>>           error for this?
>
>
> assert( &i != &j);
>
> -manfred

That is not a compiler error, it is an inserted runtime error.

-Steve



More information about the Digitalmars-d mailing list