The autocompletion doesn't work here to offer epu_ctr in the writeln statement either, so it doesn't seem to be a problem with number of subscripts. writeln(a1[0]. does offer epu_ctr for completion at the same place.

import std.stdio;
import std.experimental.ndslice;
import std.experimental.ndslice.iteration: transposed;
struct sample{
        ulong [10] core_ctr;
        ulong [32] epu_ctr;
}


void main() {
        auto a1 = new sample[60];
        auto t3 = a1.sliced!(ReplaceArrayWithPointer.no)(60);
        writeln(t3[0].epu_ctr);
}

Reply via email to