Can we fix reverse operator overloading (opSub_r et. al.)?

Robert Jacques sandford at jhu.edu
Fri Jul 10 14:21:47 PDT 2009


On Fri, 10 Jul 2009 11:15:15 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> Don wrote:
>> The other thing that's desperately missing from D is multi-dimensional  
>> indexing.
>
> What are the limitations of multiple-argument []?
>
> Andrei

Don might be refering to the $ operator, but that more applies to slicing.
Personally, I find the lack of multi-dimentional slicing more of a lack:  
i.e.
matrix[[1,2]..[matrix.lengths[0]-3,5]]
vs
matrix[1..$-3, 2..5]



More information about the Digitalmars-d mailing list