Schrödinger's Stride

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Oct 10 14:07:30 PDT 2010


On 10/10/10 13:34 CDT, Tomek Sowiński wrote:
> Currently the contents of Stride depend on from which end we look at it:
>
> auto m = [1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4]; // 3 rows, 4 columns
> auto col = stride(m, 4);
> assert(equal(col, [1, 1, 1]));
> assert(equal(retro(col), [4, 4, 4]));
>
> Is the quantum behavior intended?

Bug!

Andrei


More information about the Digitalmars-d mailing list