Testing some singleton implementations
Dejan Lekic
dejan.lekic at gmail.com
Fri Jan 31 09:11:30 PST 2014
On Friday, 31 January 2014 at 17:10:08 UTC, Andrei Alexandrescu
wrote:
> 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
If that is what people want, then David's version is definitely
the best one.
More information about the Digitalmars-d
mailing list