What to do about dpointers
apaku at gmx.de
Sat May 19 11:22:32 BST 2007
On 19.05.07 11:46:23, Oswald Buddenhagen wrote:
> On Friday 18 May 2007, Andreas Pakulat wrote:
> > I'd like to know what do you kdelibs people do wrt to classes that
> > don't have private members (at the moment) and no dpointer? Do you add
> > a dpointer and private class and just initialize the dpointer to 0?
> > Whats the common practice for this?
> hmm, if a class has no private members and it is a lib class, it has no
> members at all, no? that means it is stateless which in turn means it
> should contain only static functions which in turn means it should be a
> ok, maybe i'm overgeneralizing, but at least it should be checked
> whether my logic applies. :)
In the case I'm talking about the class is just a base class for other
classes which do have private members. It just provides and interface
that users of the API can rely on.
Your nature demands love and your happiness depends on it.
More information about the kde-core-devel