On Monday, 21 December 2015 at 04:39:23 UTC, drug wrote:
You can use
alias Type = typeof(t0);
Type t1 = 1000.iota.sliced(3, 4, 5);

IIRC Result is the Voldemort type. You can think of it as a detail of implementation of ndslice that isn't intended to be used by a ndslice user directly.

ok, well this worked, so it seems to be something lacking in the description of iota's type rather than an issue with ndslice.

alias RESULT = typeof(1000.iota);
Slice!(3u, RESULT) t1 = 1000.iota.sliced(3, 4, 5);

        auto t2 = 1000.iota();
        pragma(msg, typeof(t2));
This just prints Result.

Ok, so what is the reason for not being able to know the type of a specified iota?



Reply via email to