Matrix-type-friendly syntax and more

Norbert Nemec Norbert at Nemec-online.de
Sun Oct 9 23:48:16 PDT 2011


On 10.10.2011 03:18, bearophile wrote:
> kenji hara:
> 
>> I got an idea for multidimentional indexing and slicing.
>> http://d.puremagic.com/issues/show_bug.cgi?id=6798
> 
> Thank you, you are good.
> 
> So is this:
> y[$-6, 0..$:2]
> 
> Translated like this?
> y.opIndex(y.opDollar!0 - 6, y.opSlice!1(0, y.opDollar!1, 2))

Nice! This seems like the way to go.


More information about the Digitalmars-d mailing list