Fixed size multidimensional array at runtime
Denis Shelomovskij
verylonglogin.reg at gmail.com
Sun Jul 1 02:52:13 PDT 2012
01.07.2012 13:46, Denis Shelomovskij пишет:
> So I deliberately disallow rule
> "`matrix[x]` means `matrix[x, R[]...]`"
> and made `byTopDimension` property for such iteration:
> `matrix.byTopDimension[x].byTopDimension[y].byTopDimension[z]`
>
> See:
> http://deoma-cmd.ru/d/docs/src/my/rarray.html#byTopDimension
>
And yes, addition of `alias byTopDimension opIndex;` in my
`RectangularArray` struct should allow your (inconsistent and
error-prone, IMHO) syntax.
--
Денис В. Шеломовский
Denis V. Shelomovskij
More information about the Digitalmars-d-learn
mailing list