Re: Calling parent's constructor

From: Date: Wed, 13 Dec 2000 22:24:54 +0000
Subject: Re: Calling parent's constructor
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-41238@lists.php.net to get a copy of this message
On Wed, 13 Dec 2000, Andrei Zmievski wrote: > On Wed, 13 Dec 2000, Ignacio Vazquez-Abrams wrote: > > How about a call_parent_constructor() function that wouldn't even require > > parent::? > > Hey, I'm all for it, I was just asking what people thought... > > -Andrei > > "Computers are useless. They can only give you answers." > --Pablo Picasso > Works for me. IIRC, something that Delphi has is the inherited() function (it's been a while since I've done Win32 development, so my memory is a bit rusty), which would automatically call the parent's overridden function with the same parameters. VERY handy for polymorphism, although it's probably slightly less relevant in a weakly-typed language like PHP. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.dev (#41238) next »