Questions about initialization of array of objects

bearophile bearophileHUGS at lycos.com
Sat Jan 12 13:12:05 PST 2013


Maxim Fomin:

> I see, but these names are interchangeable. Dlang.org uses 
> "static" (as opposed to dynamic) and tdpl tends to use 
> fixed-size name.

If you call a1 static array, then what name do you give to a2? A 
static static array?

void main() {
     int[5] a1;
     static int[5] a2;
     __gshared int[5] a3;
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list