Reason for 'static struct'
Jon D via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Dec 9 13:10:43 PST 2015
There is a fair bit of range related code in the standard library
auto MyRange(Range)(Range r)
static struct Result
private Range source;
// define empty, front, popFront, etc
I'm curious about what declaring the Result struct as 'static'
does, and if there are use cases where it be better to exclude
the static qualifier.
More information about the Digitalmars-d-learn