Questions about initialization of array of objects

bearophile bearophileHUGS at lycos.com
Sat Jan 12 15:21:09 PST 2013


> 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


More information about the Digitalmars-d-learn mailing list