Re: [PHP-DEV] Base and derived class construction

2004-06-29 Thread Marcus Boerger
Hello Jason, to be honest i don't really care. Since i am a C++ guy who loves types i'd appreciate automatic calling of inherited constructors/destructors. But php does not have types and so the non implicit calling version gives us a little bit more flexibility. Since we also don't have polymorph

Re: [PHP-DEV] Base and derived class construction

2004-06-28 Thread Jason Davidson
Quite possible you had something else in mind, im just interested in knowing why its done this way, is it for performance sake, is it becuase you beleive php is more flexable this way, is it becuase it just happened to be as such... Im not being critical, Im being curious... Jason Marcus Boerger

Re: [PHP-DEV] Base and derived class construction

2004-06-28 Thread Marcus Boerger
Hello Jason, maybe this time we neither had c++ nor java in mind, this time it was delphi. regards marcus Sunday, June 27, 2004, 8:44:45 AM, you wrote: > which languages is this normal too.. > if you refer to java, that uses the 'super' function, you need only > explicitly call super if your

Re: [PHP-DEV] Base and derived class construction

2004-06-26 Thread Jason Davidson
which languages is this normal too.. if you refer to java, that uses the 'super' function, you need only explicitly call super if your constructor has arguments, otherwise an implicit call is made to the parents defualt constructor ( one with arguments). c++ also will call the parent defualt con

Re: [PHP-DEV] Base and derived class construction

2004-06-26 Thread Stefan Walk
On Sat, Jun 26, 2004 at 08:03:12PM -0700, Jason Davidson wrote: > Hi, is there a reason that when a child class is instantiated the parent > class constructor does not get called? > The obvious workaournd for this is to simply call > $this->parentConstructor(); in the child class constructor, howev