Array operation with boolean operator

Ali Çehreli acehreli at yahoo.com
Thu Mar 14 10:56:06 PDT 2013


On 03/14/2013 10:45 AM, Andrea Fontana wrote:

 > You see? Your code do this:
 >
 > a[] = (b[] < c[]);

I thought the same thing at first but note the brackets after b and c. 
Those should make this an array-wise operation.

For all elements of a to be the same value, one would not write the 
brackets:

     a[] = b < c;

Some of the array-wise operations are confusing. :/

Ali



More information about the Digitalmars-d-learn mailing list