Andre Poenitz wrote:

> On Mon, Oct 13, 2003 at 04:27:09PM +0000, Angus Leeming wrote:
>> Attempting to get rid of the BufferView cache stuff, I've had a
>> look at class LyX. It is simple enough to turn it into a singleton
>> class
> 
> If so it could be turned to a namespace as well...

I'd like it to eventually store all those global variables that 
currently just 'float' around. See the code at the end of the 
lyx_gui::start function:

void start(string const & batch, vector<string> const & files) {
        ...
        // FIXME: breaks emergencyCleanup
        delete lyxsocket;
        delete lyxserver;
}

We currently have far too many global vars and singleton classes and 
they're a pain in the butt to track down. Is
        LyX::get().converters()
too much to type? I don't think so.

-- 
Angus

Reply via email to