The "static static" is the same as an empty @templated():


int foo(T)() if (is(T == char) || is(T == dchar) || is(T == wchar)) {
    @templated() dchar[] table = ['a', 'b', 'c'];
    @templated() immutable val = someHeavyCTFE(10);
    // uses table and val here
    return 0;
}

Sorry "static static" is the same as "@templated() static".

Bye,
bearophile

Reply via email to