class that is initialized becomes null when outside of function

Flaze07 christianseiji.cs at gmail.com
Mon Jul 9 09:21:03 UTC 2018


On Monday, 9 July 2018 at 09:18:50 UTC, Flaze07 wrote:
> I am using DSFML
> module game;
>
> [...]

oh, and I forgot, I had

Game myGame;
static this()
{
     myGame = new Game;
}

below the Game class


More information about the Digitalmars-d-learn mailing list