On Sun, Feb 24, 2008 at 11:29:17PM -0500, rgheck wrote:
> After working on some other things, I'm given to ask this question: Would 
> it be better if global objects such as baseclasslist (the old 
> textclasslist) were replaced by singletons?

*shrug*

Singletons are good if you need to control initialization order or if
you have specific reasons not to use global statics. Otherwise I have
a feeling of "over-engineering". But I don't care too much.

Having a accessor function

WhatEver & theBaseClassList()
{
        static data...
        return data;
}

usually is good enough.

Andre'

Reply via email to