Re: base class
| From: | Christian Schneider | Date: | Tue, 27 Jan 2004 13:36:28 +0000 |
| Subject: | Re: base class | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7349@lists.php.net to get a copy of this message | ||
Stephane Drouard wrote:
For sure I can't answer to your question, but why would you only implement it to construtors?That's where I think it is most needed. The other magic methods are already less important but if there is an agreement to this I could also whip a patch together for those. I just try to go step by step.
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 disagree. I think it's silly to force people to provide a base class just for this. And I think parent::__construct() covers at least 80%. IMHO PHP doesn't need to be perfect in an academic OO sense but needs to provide what the majority of users need. - Chris