Testing some singleton implementations

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jan 31 09:10:08 PST 2014


On 1/31/14, 3:42 AM, Andrej Mitrovic wrote:
> On 1/31/14, Dejan Lekic <dejan.lekic at gmail.com> wrote:
>> SingletonSimple is a winner
>
> Well yeah, but that's not really the only thing what a singleton is
> about. It's also about being able to initialize the singleton at an
> arbitrary time, rather than in a module constructor before main() is
> called.

Well yah Singleton should be created on first access.

Andrei



More information about the Digitalmars-d mailing list