Schrödinger's Stride
Tomek Sowiński
just at ask.me
Sun Oct 10 14:27:54 PDT 2010
Andrei Alexandrescu napisał:
> 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!
http://d.puremagic.com/issues/show_bug.cgi?id=5035
--
Tomek
More information about the Digitalmars-d
mailing list