Matrix-type-friendly syntax and more

bearophile bearophileHUGS at lycos.com
Sun Oct 9 18:18:00 PDT 2011


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))

Bye,
bearophile


More information about the Digitalmars-d mailing list