On Tue, Jun 11, 2002 at 01:24:54AM +0200, Lars Gullik Bjønnes wrote: > | I've tried hard, but I'm at a loss to work out why these aren't > | in a namespace instead. It might do something about the butt-ugly > | names too ... > > How does extern "C" and namespaces mix? > Remember that this has to be a 'C'-api.
It does ? Some weird dynamic linking thing, huh ? > sorry, but I do not understand this sentence completely. That's 'coz I'm flaming you whilst being offtopic. If I was offensive too I'd win all three ! > but! I am not introducing more pimpls, more like the first step is > going towards a dynamically loaded frontend gui. But then you reject my obvious code, and come up with (stupid) solutions that would totally prevent dynamic loading. > class Dialogs { > void showSomeDialog() { > staitc function0<void) sSd = getGUISymbol<void>("showSomeDialog"); Couldn't we use LD_PRELOAD or similar to resolve stuff, rather than dlopen tricks ? Besides, the LyX team have been messing about with GUIIsation of the dialogs for, what, 3 years ? More ? How about getting your act together and actually getting a working system off the ground first, and then all the playrooming can happen after ? regards john -- "I continue to be amazed at what Andrei can make templates do. Some of it still makes my head hurt." - Herb Sutter