Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25712 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65424 invoked by uid 1010); 14 Sep 2006 20:34:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65409 invoked from network); 14 Sep 2006 20:34:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2006 20:34:28 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 81.169.182.136 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from [81.169.182.136] ([81.169.182.136:37289] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/CD-45066-0BCB9054 for ; Thu, 14 Sep 2006 16:34:27 -0400 Received: from baumbart.mbo (dslb-084-063-050-176.pools.arcor-ip.net [84.63.50.176]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 28FFF35C1FB; Thu, 14 Sep 2006 22:33:49 +0200 (CEST) Date: Thu, 14 Sep 2006 22:33:53 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1474446553.20060914223353@marcus-boerger.de> To: =?utf-8?Q?Terje_Sletteb=C3=B8?= Cc: RQuadling@GoogleMail.com, internals@lists.php.net In-Reply-To: <008501c6d836$976acbb0$9a02a8c0@pc> References: <0a1301c6d64f$8af01c70$a900000a@adstate.local> <00b501c6d6b4$632b7e90$9a02a8c0@pc> <10845a340609130053n395632f4ka5bbed3e49ce6ad2@mail.gmail.com> <0d4001c6d71a$fa124260$a900000a@adstate.local> <45081ABF.2020804@dealnews.com> <005301c6d768$7a5fb0e0$9a02a8c0@pc> <45087C81.3030008@dealnews.com> <006701c6d7c2$414424d0$9a02a8c0@pc> <45096A7D.3070706@dealnews.com> <003e01c6d825$92fc36b0$9a02a8c0@pc> <10845a340609141157g71bcf577ge2b9c0feefa1a961@mail.gmail.com> <008501c6d836$976acbb0$9a02a8c0@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Why isn't base class constructors or destructors required to be called? (was: Re: [PHP-DEV] Return type hints) From: helly@php.net (Marcus Boerger) Hello Terje, Thursday, September 14, 2006, 9:47:20 PM, you wrote: > (This went to me privately, but in order for this to benefit the discussion, > I reply to the list, as well. Besides, there's now another thread for this, > too) > Hi Richard. >> When would the constructor be called automatically? I've used Delphi >> and you use the inherit verb (or inherited - long time ago - can't >> remember exactly). In PHP parent::__construct (though I think >> parent::__METHOD__ would be cleaner as this removes ambiguity on the >> actual name for all inherited methods). > Well, let's look at C++, which I'm most familiar with. PHP is not C++ and speaking of constructors and destrcutors PHP goes morethe Delphi way. We do not claim to follow any other language precisely, PHP is it's own language with its own feature set. It seems to me that you are using the wrong language. I guess you should have a look at Phyton. best regards marcus