note 63829 added to language.oop5.constants
| From: | awbacker at gmail dot com | Date: | Sat, 01 Apr 2006 03:15:55 +0000 |
| Subject: | note 63829 added to language.oop5.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107113@lists.php.net to get a copy of this message | ||
"Lest anyone think this is somehow an omission in PHP, there is simply no point to having a
protected or private constant. Access specifiers identify who has the right to *change* members, not
who has the right to read them"
I do see this as an omission. They are not only access modifiers, but they limit visibility as
well. As it is, I can not make a constant that is private to my class, which I see as a problem. I
would settle for multiple modifiers like private const $var = 'me'; but that is not
allowed either.
----
Server IP: 64.71.164.2
Probable Submitter: 24.5.106.148
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.oop5.constants.php
Edit -- http://master.php.net/note/edit/63829
Del: integrated -- http://master.php.net/note/delete/63829/integrated
Del: useless -- http://master.php.net/note/delete/63829/useless
Del: bad code -- http://master.php.net/note/delete/63829/bad+code
Del: spam -- http://master.php.net/note/delete/63829/spam
Del: non-english -- http://master.php.net/note/delete/63829/non-english
Del: in docs -- http://master.php.net/note/delete/63829/in+docs
Del: other reasons-- http://master.php.net/note/delete/63829
Reject -- http://master.php.net/note/reject/63829
Search -- http://master.php.net/manage/user-notes.php