Not too helpful but a few points that may interest you: - All dynamic arrays are slices. T[] array = ptr[0 .. length]; - Compute values at CTFE, compare, contrast against e.g. unittests for extra verification