Question on static declaration

Eric eric at makechip.com
Sat Jan 11 09:49:59 PST 2014


Apparently the line,

static shared static int x;

will compile just fine.  Is this sort of a bug,
or does it mean something different from just

static shared int x;

?

Also, the line,

static static static int x;

will also compile.  Does this mean x is extra static?

-Eric



More information about the Digitalmars-d-learn mailing list