Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23469 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21106 invoked by uid 1010); 16 May 2006 20:55:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21091 invoked from network); 16 May 2006 20:55:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2006 20:55:31 -0000 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:59510] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E2/2D-19568-04C3A644 for ; Tue, 16 May 2006 16:55:29 -0400 Received: from baumbart.mbo (dslb-084-063-059-004.pools.arcor-ip.net [84.63.59.4]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id DE3B335C1CE; Tue, 16 May 2006 22:55:24 +0200 (CEST) Date: Tue, 16 May 2006 22:55:28 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <4010070824.20060516225528@marcus-boerger.de> To: Andi Gutmans Cc: Jason Garber , Zeev Suraski , In-Reply-To: <7.0.1.0.2.20060516133713.037f5a10@zend.com> References: <785810036.20060511193536@ionzoft.com> <7.0.1.0.2.20060515210559.06acd350@zend.com> <1217741491.20060515174322@ionzoft.com> <7.0.1.0.2.20060515190856.02b53bb0@zend.com> <7.0.1.0.2.20060516133713.037f5a10@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] private, protected, readonly, public From: helly@php.net (Marcus Boerger) Hello Andi, however the past has tought of something. Nobody will test a patch. That said there won't be any feedback until it gets into at least head and people feel confident they should experiment with it. As it stands now you could just take it as a decision against it and be done. best regards marcus Tuesday, May 16, 2006, 10:39:53 PM, you wrote: > I suggest to wait for a response about the edge cases question I sent > out (i.e. returning a writable reference of this readonly property). How is a writeable reference a public read variable in php? In php we don't have concept like c++ offeres and even there normally const methods return const references aka read only references. > I for one haven't quite understood what the semantics will be in all > the edge case situations. The semantics for the majority seems to be public read. E.g. the language offers a way to circumvent or redefine visibility when reading. > Although I think the concept is interesting > (and somewhat beneficial), I don't want to regret having done it 6 > months down the line when people complain it's broken because in edge > cases it doesn't work. We need to be sure that the semantics are 100% > ok in all cases. Writing a patch is the easy part. If that was the case, then why was i the only one to provide a patch like in so many times before. I mean yes it is easy for me, and definitively also for dmitry and sara as well as most likely for you too. But how mayn other people can provide such a patch? > The fact that > patches can be written doesn't mean we shouldn't be careful about > making these changes. We have made too many mistakes in the past > which were hard to undo. Yes we have only i don't know what we can really do about. I mean other then discussiong it, see that it is doable and getting a feeling for it? We can apply it or forget it. best regards marcus p.s.: I still have the patches for public/protected/private and those for final and tons of others related to our object model. Want me to use them to drop any feature? :-))