Re: [PHP4BETA] OOP issue
| From: | Christian Schneider | Date: | Mon, 15 Nov 1999 17:46:39 +0000 |
| Subject: | Re: [PHP4BETA] OOP issue | ||
| References: | 1 2 3 4 5 6 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6261@lists.php.net to get a copy of this message | ||
Kristian Köhntopp wrote:
> 'I am a constructor', without need to rename the
> constructor. And in a subclass
I see your point but it's IMHO not too important since we only have one
constructor one needs to change, not dozens like in C++ (-:C
> $super->init();
Hmm... As a work-around you could have a method init() doing all the
work and simply call it from your constructor. As long as all your
classes adhere to this convention it works, even if it is not very
elegant.
Might be nice to have a fix name for the constructor but not top-prio
IMHO.
BTW: Does PHP4 provide stack backtraces yet? I seem to recall that the
feature list included something like that in the debugger section, it
would be very hand to have something like printStackTrace() in Java.
- Chris
--
Chris Schneider - mailto:cschneid@relog.ch
Computers are not intelligent. They only think they are.