Static constructor

Imperatorn johan_forsberg_86 at hotmail.com
Wed Jan 6 17:18:45 UTC 2021


On Wednesday, 6 January 2021 at 17:05:02 UTC, ludo wrote:
> I read in the documentation
> "Static constructors are used to initialize static class 
> members with values that cannot be computed at compile time"
>
> [...]

Since this is not the complete code it's a bit hard to know, but 
I'd guess this is for use as a singleton and/or for thread safety.


More information about the Digitalmars-d-learn mailing list