note 23194 deleted from language.oop by dams

From: Date: Sun, 28 Jul 2002 14:50:36 +0000
Subject: note 23194 deleted from language.oop by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33827@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.

« previous php.notes (#33827) next »