Re: base class
| From: | Stephane Drouard | Date: | Tue, 27 Jan 2004 13:11:15 +0000 |
| Subject: | Re: base class | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7348@lists.php.net to get a copy of this message | ||
Chris,
For sure I can't answer to your question, but why would you only implement it to construtors?
My original request was that all classes inherit from a base class provided by PHP (even if not
explicitly written), and that this base class implements all magic methods in the appropriate way
(see my original message).
Because PHP won't implement such a base class, I don't think it's interresting to be
able to call parent::__construct() without error. Just provide your base class to do so.
I just proposed PHP provides this class to be sure all classes inherits from the same base class,
and not everybody develops their own. That way, new PHP features would be implemented in this class
and automatically supported by all classes.
Regards,
Stephane