Re: [patch] Late static bindings (LSB)

From: Date: Thu, 27 Sep 2007 03:00:45 +0000
Subject: Re: [patch] Late static bindings (LSB)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32463@lists.php.net to get a copy of this message
Hello,
    static methods seem exactly like dynamic binded methods now, is there
any chance that "abstract static function" being restored from E_STRICT
limitation? Currently it is allowed in interfaces, but forbidden in abstract
class, I don't know why php implements "static method" in this way, this
seems strange.. Thanks!

On 9/27/07, Stanislav Malyshev <stas@zend.com> wrote:
>
> > 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
> stas@zend.com   http://www.zend.com/
> (408)253-8829   MSN: stas@zend.com
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Best regards,
Jingcheng Zhang
Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University
P.R.China


Thread (54 messages)

« previous php.internals (#32463) next »