Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6909 invoked from network); 26 Sep 2015 10:23:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2015 10:23:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=codekestrel@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=codekestrel@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: codekestrel@googlemail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:38869] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/00-06395-60276065 for ; Sat, 26 Sep 2015 06:23:03 -0400 Received: by wiclk2 with SMTP id lk2so46935599wic.1 for ; Sat, 26 Sep 2015 03:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ickQNf72TX4gAzwDj5+Oa7AJSpmpvb1Eps9WfYO9Ftk=; b=Mn9738KoNKGUKxvg6q0KKWHmJhzJtkS3YA+aa9qooysoQXbVPmQNZ5WC9HNtLOnb02 bj3iGE3NDdo4Qlu+z6K6RTQP1Y8tZxZtwBGyVlAWJJTBdupin4r/i5Vk5zCUjPCGlqL8 XEEbLUprihDwz4nbwOhzzezvp5RVLs+6ppXujBn4QF88L0AXjwcr7dIV1i7FyZ4zu8tc KlFzV7v4ezdaNsr6Ad7O81xAmrGjPfsImAywhrFq3k5HXYLEkKLrwZyFEnOM23gSkrVT G+OON7J6IJ3nUu1wYZfhV2MxAfLm1IK1qIwSRk4bT7K+5y2AOo7lVcTC6TY4JuGx8DFK yL8A== MIME-Version: 1.0 X-Received: by 10.180.105.135 with SMTP id gm7mr7878810wib.18.1443262980345; Sat, 26 Sep 2015 03:23:00 -0700 (PDT) Received: by 10.27.104.197 with HTTP; Sat, 26 Sep 2015 03:23:00 -0700 (PDT) Received: by 10.27.104.197 with HTTP; Sat, 26 Sep 2015 03:23:00 -0700 (PDT) In-Reply-To: <56065071.2070107@gmail.com> References: <5605BACE.30803@gmail.com> <5605C23D.6030104@gmail.com> <56065071.2070107@gmail.com> Date: Sat, 26 Sep 2015 11:23:00 +0100 Message-ID: To: Stanislav Malyshev Cc: internals@lists.php.net, =?UTF-8?Q?Pavel_Kou=C5=99il?= Content-Type: multipart/alternative; boundary=14dae9cc9c9242d6810520a3d92e Subject: Re: [PHP-DEV] Implementing Generics, and none scalar default properties. From: codekestrel@googlemail.com (Dominic Grostate) --14dae9cc9c9242d6810520a3d92e Content-Type: text/plain; charset=UTF-8 An alternative that rfc might be to add a modifier to ctor, something like. required public function __construct(); A required function cannot be final, because the intention is to allow it to be overridden, but it must be called by the child impl at some point. What do u think? On 26 Sep 2015 8:59 am, "Stanislav Malyshev" wrote: > Hi! > > > Since there is no reason not to call parent ctor, maybe PHP should > > somehow make every class have default empty ctor, if it doesn't have > > one defined already - so you can write automatically > > parent::__construct() everywhere? > > I completely agree with you, that's why I submitted > https://wiki.php.net/rfc/default_ctor. Unfortunately, it was rejected. > > -- > Stas Malyshev > smalyshev@gmail.com > --14dae9cc9c9242d6810520a3d92e--