Re: Calling parent's constructor

From: Date: Thu, 14 Dec 2000 08:14:59 +0000
Subject: Re: Calling parent's constructor
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-41299@lists.php.net to get a copy of this message
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 -- Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99 Using PHP3? See our web development library at http://phplib.netuse.de/

« previous php.dev (#41299) next »