note 63829 deleted from language.oop5.constants by danbrown

From: Date: Wed, 03 Aug 2011 13:30:22 +0000
Subject: note 63829 deleted from language.oop5.constants by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182182@lists.php.net to get a copy of this message
Note Submitter: awbacker at gmail dot com ---- "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.

« previous php.notes (#182182) next »