So, if I understand you well, Stanislas, you are personally not much into
"static::" but more into making that sort of code working :

interface iC {
        public $structure;
}
abstract class A implements iC {
        public function display() {
                echo self::$structure;
        }
}
class B extends A {
        static public $structure = "This is a string.";
}
$b = new B();
$b->display();

No, I don't think we should make interfaces with variables, I'm just telling that the code before had API that not allowed correctly enforce its requirements.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to