static class

Michael pr at m1xa.com
Sun Feb 17 14:00:19 PST 2013


> That's not the meaning of static in that context.
As I understand a static class can't be instantiated.

> The above is useful in nested classes.
I just read it. Holy s.. cow.

> Instead you can use:
>
> class Test
> {
> static:
>     void foo() { }
> }

So in mine case if I want purely static class I need to use:

static Test
{
   static void foo();
}

right?


More information about the Digitalmars-d-learn mailing list