Blog Post #0105: D-specific Stuff for GUI Programming

Jacob Carlborg doob at me.com
Mon Mar 23 10:45:24 UTC 2020


On Monday, 23 March 2020 at 10:41:43 UTC, Jacob Carlborg wrote:

> class DSingleton
> {
>     immutable DSingleton instance = new DSingleton;
> }

Should of course be `static`:

class DSingleton
{
     static immutable DSingleton instance = new DSingleton;
}

--
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list