Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30137 invoked from network); 15 Jan 2017 17:41:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2017 17:41:42 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 212.232.25.164 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.25.164 mx208.easyname.com Received: from [212.232.25.164] ([212.232.25.164:55691] helo=mx208.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/DE-00729-554BB785 for ; Sun, 15 Jan 2017 12:41:42 -0500 Received: from cable-81-173-135-7.netcologne.de ([81.173.135.7] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cSooF-000775-Rm; Sun, 15 Jan 2017 17:41:39 +0000 Reply-To: internals@lists.php.net References: <0DE25BF8-D349-48EF-A83B-8837DD4AD1E0@gmail.com> <5efcc230-c67b-4439-cc82-b31eacbf36db@php.net> <7c8c8801-a849-6fd2-91e9-954030c55e83@fleshgrinder.com> <2051639b-1b63-2e44-51b0-381caa54dfd0@fleshgrinder.com> <17bb5ec4-833d-d827-0932-390723d52665@gmail.com> To: Rowan Collins , internals@lists.php.net Message-ID: <2be40554-4efd-e4fc-2f78-a3e6d0117135@fleshgrinder.com> Date: Sun, 15 Jan 2017 18:41:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <17bb5ec4-833d-d827-0932-390723d52665@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-DNSBL-PBLSPAMHAUS: YES Subject: Re: [PHP-DEV] Explicit constructor call and polymorphic dispatch From: php@fleshgrinder.com (Fleshgrinder) We discussed this whole thing in different channels and together refined the original idea as well as what the actual problem and a solution would be. The actual problem are multiple calls to the constructor because they break the encapsulation. We know that there are many ways to do so but this is a very weird one. Hence, the proposal will be to disallow **multiple constructor calls**. All examples that were given so far would continue to work. However, the weird examples that were given at the beginning will stop working and result in an error. -- Richard "Fleshgrinder" Fussenegger