Problem not so much solved. What if I want to keep a stride range? There's no Stride struct defined in std.range, stride() is defined as an auto function and hides the type inside the function itself.
How I can store such an object in module scope? This won't work: auto var = stride([1, 2, 3], 2); This prints out a couple of hundred lines of text as an error message followed by "not implemented yet in CTFE".