Non-ugly ways to implement a 'static' class or namespace?
ProtectAndHide
ProtectAndHide at gmail.com
Sun Feb 5 22:40:09 UTC 2023
On Sunday, 5 February 2023 at 10:51:51 UTC, thebluepandabear
wrote:
>
> It's not a terrible workaround to be honest.
> ....
The 'terrible' part is this:
- the compiler will allow you to declare a variable of type Algo
- the compiler will allow you to declare an array with elements
of type Algo
- the compiler will allow you to use Algo as a type argument
- the compiler will allow you to use Algo as a parameter
- the compiler will allow you to use Algo as a return type
More information about the Digitalmars-d-learn
mailing list