# Base and derived class construction

- Thread: https://externals.io/message/10809
- Original archive: https://news-web.php.net/php.internals/10809
- Started by Jason Davidson on 2004-06-27T22:12:32+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10809 — Jason Davidson — 2004-06-27T22:12:32+00:00

URL: https://externals.io/message/10809#10809

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 <helly@php.net> wrote:
> 
> 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:
> 
> > […]
> 
> > […]
> 
> > […]
> 
> 
> 
> 
> -- 
> Best regards,
>  Marcus                            mailto:helly@php.net

---

## #10837 — Marcus Boerger — 2004-06-29T17:57:13+00:00

URL: https://externals.io/message/10809#10837 · In reply to: #10809

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
polymorphism the current solution seems to fit best. I hope this is a
better answer. A thing which could be changed though (if we haven't
fixed down everything in that area) is to change to automatically call
inherited destructors.


regards
marcus


Monday, June 28, 2004, 12:12:32 AM, you wrote:

> 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 <helly@php.net> wrote:
> > […]




-- 
Best regards,
 Marcus                            mailto:helly@php.net
