[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Does anyone have a suggestion for the "d" pointer for classes that don't have it
From: David Faure <david () mandrakesoft ! com>
Date: 2001-09-07 8:50:43
[Download RAW message or body]
On Vendredi 31 Août 2001 10:58, Scott Manson wrote:
> Hello
> I was wondering if a class doesn't have a private d pointer what is the best
> way of declaring it. I have seen 2 different ways
> 1. forward declared class classPrivate;
> 2. have it declared in the private section of a class
> private:
> class classPrivate;
> classPrivate *d;
The latter is slightly better, since it encapsulates the classname into the
namespace of the main class (Class::ClassPrivate).
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic