Re: [PATCH] late binding for parent (and other options) - Was Re: [PHP-DEV] late static binding php6

From: Date: Mon, 26 Nov 2007 09:41:28 +0000
Subject: Re: [PATCH] late binding for parent (and other options) - Was Re: [PHP-DEV] late static binding php6
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-33437@lists.php.net to get a copy of this message
On 11/26/07, Stanislav Malyshev <stas@zend.com> wrote: > > I believe this first patch is the proper way to go. It feels > > "natural", "intuitive", etc. > > I don't see how making parent::foo() and A::foo() work differently is > either "natural" or "intuitive". A::foo() doesn't mean any inheritance at all. "A" can be completely unrelated class parent::foo() means inheritance and inheritance means "extending" and "keeping context". So, "parent::foo()" means "call method of parent-class, but remember, that we extended that class, so keep context" -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.internals (#33437) next »