Matrix-type-friendly syntax and more

Don nospam at nospam.com
Sun Oct 9 22:34:59 PDT 2011


On 10.10.2011 04:41, kenji hara wrote:
> 2011/10/10 bearophile<bearophileHUGS at lycos.com>:
>> So is this:
>> y[$-6, 0..$:2]
>>
>> Translated like this?
>> y.opIndex(y.opDollar!0 - 6, y.opSlice!1(0, y.opDollar!1, 2))
>
> I have no thought about it.
> I'm not sure that the additional stepping is really useful, but I
> think adding it into syntax is not impossible -- it might not conflict
> with associative array literal.
>
> Kenji Hara

Personally, I think that since strided operations are so inefficient, 
they should remain ugly.


More information about the Digitalmars-d mailing list