Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88503 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59206 invoked from network); 25 Sep 2015 21:53:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2015 21:53:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.41 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.41 mail-pa0-f41.google.com Received: from [209.85.220.41] ([209.85.220.41:34299] helo=mail-pa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/57-31991-A42C5065 for ; Fri, 25 Sep 2015 17:53:14 -0400 Received: by padhy16 with SMTP id hy16so116676559pad.1 for ; Fri, 25 Sep 2015 14:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=GM6O5gpBJDsjA5rf0s6JnSDeHNOvxvYWfe4Lw0jVOyQ=; b=XJe92aUeo19fHNNznphax34PYgMV6nUTk813rTXptjCkGgAF1K4R1rsVw/w2r3je4+ Tn8I2K9umPsjaimpqVAlOjBis6Smo/dGAxPfvDSEOUlW/oNP2otYig5xaL4jsW6AVNyA iKaLTZI2zwSXAH0ycEzKtbRS05Fjumwwvv2y4mYaLDKC1q7GwGBXK+j5WOOVcRUZ7pcq PR2bRb3vXux+dNOAm8ZnD6sjpQDJYldnf9SnAml9QEm1rrfiniwqt35ylUd8nS9m5CVv zCanLIktuKI4qdlaBiFK+DsieFbPJ8Xefrq/APgYC24rcX8gpodIFClglsAq8P4NqU2Q m29w== X-Received: by 10.66.216.39 with SMTP id on7mr10046761pac.73.1443217990696; Fri, 25 Sep 2015 14:53:10 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id dk2sm5628446pbd.57.2015.09.25.14.53.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 14:53:09 -0700 (PDT) To: Dominic Grostate References: <5605BACE.30803@gmail.com> Cc: internals@lists.php.net Message-ID: <5605C23D.6030104@gmail.com> Date: Fri, 25 Sep 2015 14:53:01 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implementing Generics, and none scalar default properties. From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I'm thinking primarily of the benefit to base or abstract classes. For Both can have constructors. > base classes which expect certain properties be set, they are exposed to > the danger of remaining unset if the derived class overrides the > constructor without calling the parent. You should always call the parent ctor. There's pretty much no reason to ever not to call parent ctor. -- Stas Malyshev smalyshev@gmail.com