For several times I've met struct(or static struct) usage in
Phobos for singleton pattern implementation. Unfortunately now i
can remember only core.runtime.Runtime.
So I've got a question. Why do Phobos guys use struct or static
struct for or singleton pattern implementation? Why don't use
static final class for this purpose?
- static class vs. static struct ref2401 via Digitalmars-d-learn
- Re: static class vs. static str... bearophile via Digitalmars-d-learn
- Re: static class vs. static... Piotrek via Digitalmars-d-learn
- Re: static class vs. st... anonymous via Digitalmars-d-learn
- Re: static class vs... ref2401 via Digitalmars-d-learn
- Re: static cla... Daniel Kozak via Digitalmars-d-learn
- Re: static... Daniel Kozak via Digitalmars-d-learn
- Re: static cla... Piotrek via Digitalmars-d-learn
- Re: static... Ali Çehreli via Digitalmars-d-learn
- Re: static class vs... Piotrek via Digitalmars-d-learn
- Re: static cla... Ali Çehreli via Digitalmars-d-learn