Reply to Re: instantiating an object fails (design patterns)

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация