On Wed, 28 Feb 2001, Michael Goffioul wrote: > Bernd Gehrmann wrote: > > > On Wed, 28 Feb 2001, Michael Goffioul wrote: > > > I don't think it is really tricky to write: > > > > > > KPrinter *printer = KPrinterFactory::self()->printer(); > > > ; > > > > It's even less tricky if you make the destructor non-public :-) > > Yes. To avoid any problem KPrinter constructors and desctructor will be > tagged "protected". Only the factory will then be responsible for KPrinter > object. Beware! egcs has problems with non-public d'tors and c'tors (at least for classes without any "friends")! regards, Peter