[static] [shared] [const|immutable]
BCS
none at anon.com
Thu May 14 09:36:20 PDT 2009
Hello Lionello,
>
> //The code:
>
immutable need not be shared
> shared immutable int sif = 0xDEAD0013; //068d
static global is redundent
> static int Sf = 0xDEAD0101; //0678
> static const int Scf = 0xDEAD0102; //068d
> static immutable int Sif = 0xDEAD0103; //068d
> static shared int Ssf = 0xDEAD0111; //068d
> static shared const int Sscf = 0xDEAD0112; //068d
> static shared immutable int Ssif = 0xDEAD0113; //068d
> int main()
> {
I'm not shure what this would be used for
> shared const int scf_ = 0xDEAD1012; //073c*
immutable need not be shared
> shared immutable int sif_ = 0xDEAD1013; //073c*
I'm not shure what this would be used for
> static const int Scf_ = 0xDEAD1102; //068d
I think this is redundent
> static immutable int Sif_ = 0xDEAD1103; //068d
I'm not shure what this would be used for
> static shared const int Sscf_ = 0xDEAD1112; //068d
immutable need not be shared
> static shared immutable int Ssif_ = 0xDEAD1113; //068d
By my count 13 of the 24 cases are never needed in paractace as they end
up redundent. FWIW, I like the current setup.
More information about the Digitalmars-d-learn
mailing list