Re: php5 class initialization
| From: | Rasmus Lerdorf | Date: | Tue, 23 Mar 2004 18:23:34 +0000 |
| Subject: | Re: php5 class initialization | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8692@lists.php.net to get a copy of this message | ||
On Tue, 23 Mar 2004, Stanislav Malyshev wrote:
> RL>> Sure, but George was asking for a case. I think the case where you have
> RL>> some existing PHP4 code that you want to make minimal changes to but you
> RL>> might have a little bit of PHP5-specific code to run in the constructor I
> RL>> could see this sort of chaining being something people want. I am not
>
> Why the said people won't just insert the PHP5-specific code right into
> the constructor? Why they need the second one?
To avoid having it in 2 places.
-Rasmus