Re: [PHP4BETA] calling member in parent class
| From: | Matthew Hixson | Date: | Mon, 07 Feb 2000 18:08:44 +0000 |
| Subject: | Re: [PHP4BETA] calling member in parent class | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9914@lists.php.net to get a copy of this message | ||
On Sat, 05 Feb 2000, you wrote:
> Well, generally, every feature should have a very good reason before it's
> added to a language. It's not the other way around - if there's no reason
> not to add it, add it. There's always a reason not to add it - to keep the
> language simpler and less cluttered with built-in language level functionality.
The others on the list who want the feature added would say that this is a
reason to add it, and therefore should be.
> Regardless of your code size, PHP allows you to have a class definition at
> the scope of a single file, and a single file only. That means that no
> matter how big your code is, changing the inherited class name, for a given
> derived class, is exactly one search&replace. So it boils down to this
> difference - a replacement of the parent class name in the 'extends'
> statement, vs. a single search and replace. No noticeable difference in my
> book...
Now, that I did not know. I'm still learning the ways of PHP. I will welcome
the $parent feature if and when it is available, but I think I'll survive
without it for now.
-M@
--
Matthew Hixson
Code Mangler
Vista.com
Bringing Small Business Online