what is special about unittest constants

Ali Çehreli acehreli at yahoo.com
Mon Feb 18 09:32:46 PST 2013


On 02/18/2013 09:22 AM, Ali Çehreli wrote:

 > static immutable GameInfo[string] games;
 >
 > static this()
 > {
 > games = [ "one" : GameInfo(1) ];
 > }

And to be honest, I am not sure why I define it as 'static immutable'. 
:) Isn't this the same thing?

immutable GameInfo[string] games;

static this()
{
     games = [ "one" : GameInfo(1) ];
}

Ali



More information about the Digitalmars-d-learn mailing list