Re: redefined constructor: old and new syntax
| From: | Lorenzo Alberton | Date: | Thu, 18 Mar 2004 09:25:21 +0000 |
| Subject: | Re: redefined constructor: old and new syntax | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8577@lists.php.net to get a copy of this message | ||
On Thu, 18 Mar 2004 10:59:40 +0200 (IST), Stanislav Malyshev wrote:
> Why would anyone need this? if __construct() contains php5-only
> syntax, it won't work anyway on php4.
I just image the case of a class with some optimizations
for php5, but with a fallback implementation of some of its
features for php4 too, which get triggered by the constructor.
Anyway, I agree this is a weak argument,
there may be other ways to do the same thing.
> If it contains something that works in php4
> - why do you need separate constructor?
if the php4-way of naming a constructor is
not going to be deprecated, then I don't.
This is my main worry.
--
Lorenzo