Re: Re: [CFV] how to mark protected items?

From: Date: Wed, 16 Jun 2004 10:06:47 +0000
Subject: Re: Re: [CFV] how to mark protected items?
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30744@lists.php.net to get a copy of this message
Martin Jansen wrote:
On Wed Jun 16, 2004 at 11:3722AM +0200, Michael Wallner wrote:
Why do people think that protected has more to do with private than public?
I believe that this may turn into some sort of religious debate, so I'll only make my point clear once: Similar to private members, protected members restrict their usage scope to certain parts of code. In contradiction to this, public members do not impose any scope restrictons. This is the reason why I mentioned that protected members should be handled similar to private members at the beginning of the whole discussion.
Yea, that's just what I meant in my mail. It's all about the view on the underscore ;-) In my opinion the underscore's function was only to stop using private properties outside the class-scope, and this is also true for protected methods. Nothing more, nothing less. Stephan

« previous php.pear.dev (#30744) next »