note 23194 added to language.oop
| From: | gurra at matris dot nOSPAm_ dot org | Date: | Thu, 11 Jul 2002 14:50:12 +0000 |
| Subject: | note 23194 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32904@lists.php.net to get a copy of this message | ||
You have at several points pointed out that PHP not is an OO language, however, the lack of
encapsulation could be somewhat helped by allowing member variables to me constant. As I see it the
only way to make a constant in PHP is to use the function define() and as no code are allowed to be
fit in the class-block it is not possible to create constant class members. Would a const keyword be
that hard to add to the next version of php? Just a thought.
--
http://www.php.net/manual/en/language.oop.php
http://master.php.net/manage/user-notes.php?action=edit+23194
http://master.php.net/manage/user-notes.php?action=delete+23194
http://master.php.net/manage/user-notes.php?action=reject+23194