Posted by Marcin Dobrucki on 09/20/05 10:51
www.douglassdavis.com wrote:
> With all due respect, i could do the same in the costructor. it's just
> a matter of copy and paste.
Hmm, you are right. I think the reason why I was writing my code
this way was the inability of constructors to return values. And I
think the idea was more to do something like this:
$obj = new Object();
$status = $obj->initialize();
Then probably at some point, I tried to do this processing in the
constructor, and moved the call in initalize there.... bla bla blah.
Old habbits are hard to shake.
/m
[Back to original message]
|