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

Reply via email to