Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49457 invoked by uid 1010); 15 Sep 2006 08:01:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49441 invoked from network); 15 Sep 2006 08:01:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2006 08:01:34 -0000 Authentication-Results: pb1.pair.com header.from=manchokapitancho@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=manchokapitancho@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.231 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: manchokapitancho@gmail.com X-Host-Fingerprint: 66.249.82.231 wx-out-0506.google.com Linux 2.4/2.6 Received: from [66.249.82.231] ([66.249.82.231:32653] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/7A-45066-89D5A054 for ; Fri, 15 Sep 2006 04:00:59 -0400 Received: by wx-out-0506.google.com with SMTP id s18so3274229wxc for ; Fri, 15 Sep 2006 01:00:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=GXbeaO4mqECl+Me/g36r7MmhZF6ZqeAkskhrK+i0Yt6CT2znNaoz2vhfGko79u5WkyMNEvtAOLRLMrotxHjmmQn0DMiP3aCZtTfPaStgOmFyNN01NAimIKA1sTilHKnL4FjsWd+GKRoydaVbxJFQGT0tsrmU9Wqt8W31vSVTp7k= Received: by 10.90.90.16 with SMTP id n16mr3578216agb; Fri, 15 Sep 2006 01:00:21 -0700 (PDT) Received: by 10.90.84.1 with HTTP; Fri, 15 Sep 2006 01:00:21 -0700 (PDT) Message-ID: Date: Fri, 15 Sep 2006 11:00:21 +0300 To: internals@lists.php.net In-Reply-To: <000901c6d892$e390cba0$9a02a8c0@pc> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3298_25800951.1158307221313" References: <0a1301c6d64f$8af01c70$a900000a@adstate.local> <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> <1474446553.20060914223353@marcus-boerger.de> <000901c6d892$e390cba0$9a02a8c0@pc> 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: manchokapitancho@gmail.com ("Marian Kostadinov") ------=_Part_3298_25800951.1158307221313 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Well, PHP is a loosely typed language. You have much more freedom when you write a code. Constructors are not an exception. It is very convinient that you may not call the parent constructor and many people do it, believe me! And also the flag for the internal classes that has been discussed is maybe enough for PHP. 2006/9/15, Terje Sletteb=F8 : > > >From: "Marcus Boerger" > > > PHP is not C++ and speaking of constructors and destrcutors PHP goes > morethe > > Delphi way. > > I'd also like to know _why_ constructors/destructors are less fit for PHP= , > than these other languages? How can you be sure that objects of a class > are > properly initialised, and that they clean up after themselves? (Yes, I > know > the runtime cleans up after them, at script termination, if want to be > sloppy, but that still doesn't cover the constructor case) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > ------=_Part_3298_25800951.1158307221313--