Matrix-type-friendly syntax and more

kenji hara k.hara.pg at gmail.com
Sun Oct 9 19:41:40 PDT 2011


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


More information about the Digitalmars-d mailing list