array operation a[] + b[] not implemented??

Trass3r un at known.com
Mon Jan 18 05:08:24 PST 2010


> Quoting Andrei in his "Short list with things to finish for D2" post  
> (2009-11-19):
>
>> * Loop fusion that generalizes array-wise operations. This idea of  
>> Walter is, I think, very good because it generalizes and democratizes  
>> "magic". The idea is that, if you do
>>  a = b + c;
>>  and b + c does not make sense but b and c are ranges for which a.front  
>> = b.front + c.front does make sense, to automatically add the iteration  
>> paraphernalia.
>
> If I read this correctly, what you're asking for will most likely happen.
>

The question is, how much this is generalized with ranges. It needs to  
detect the special case of arrays and use vector operations then.



More information about the Digitalmars-d mailing list