Re: Calling parent's constructor
| From: | Joey Smith | Date: | Thu, 14 Dec 2000 08:17:19 +0000 |
| Subject: | Re: Calling parent's constructor | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-41300@lists.php.net to get a copy of this message | ||
That sounds sensible.
On Thu, 14 Dec 2000, Kristian Köhntopp wrote the following to zeev@zend.com :
> Zeev Suraski wrote:
> > >No, probably not. My original suggestion was to recognize
> > >parent::parent() construct -- I don't know how Zeev & Andi would react
> > >to that.
> >
> > Seriously, I think it makes sense. Calling the parent constructor is basic
> > functionality and should be easy to do. Hell, it's even easy to implement.
>
> Inherited constructors are already broken in Zend, and cannot
> be fixed any more. This looks sensible. I suggest parent::__parent(),
> though, to go along with __wakeup(), __sleep(), and __delegate().
>
> Special names should be in a somehow special corner of the
> namespace.
>
> Kristian
>
>