[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: private slots
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2007-01-06 10:19:45
Message-ID: 459F77C1.1000408 () kde ! org
[Download RAW message or body]

André Wöbbeking wrote:
> On Saturday 06 January 2007 10:44, Ellis Whitehead wrote:
>   
> Why do we use protected and private methods at all, lets make them all 
> public ;-)
>   

For all practical purposes they're just API documentation that's 
enforced by the compiler.  It's always been easy to work method 
permissions if you wanted to.

> Maybe a bad habit but very often I use the source code instead of the 
> docs so I would "find" the _k_* slot very fast.
>   

That's pretty irrelevant.  Ideally you're not trying to write broken 
applications and are smart enough to figure out that you're not supposed 
to call those functions.  ;-)

-Scott
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic