So how exactly does one make a persistent range object?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jun 4 18:01:19 PDT 2011


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".


More information about the Digitalmars-d-learn mailing list