[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: about private 'd' pointer
From: Bernd Gehrmann <bernd () physik ! hu-berlin ! de>
Date: 2000-08-31 11:30:55
[Download RAW message or body]
On Thu, 31 Aug 2000, Simon Hausmann wrote:
> On Thu, Aug 31, 2000 at 11:21:50AM +0200, Bernd Gehrmann wrote:
> > On Thu, 31 Aug 2000, Simon Hausmann wrote:
> >
> > > Methods being declared private in a class can still be accessed using #define private public
> > > hacks.
> >
> > Only if you have a very non-standard understanding of the word "can".
>
> Yes ;-) This understanding does not include the word "design" :-)
That's what you have mentioned before. The other issue is compatibility.
If you make use of internals of a class, your code will likely break
with a later version of that library. That's the whole point of
encapsulation.
Bernd.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic