Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23553 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40390 invoked by uid 1010); 17 May 2006 19:16:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40375 invoked from network); 17 May 2006 19:16:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2006 19:16:34 -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:34883] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 56/DD-19568-0967B644 for ; Wed, 17 May 2006 15:16:33 -0400 Received: from baumbart.mbo (dslb-084-063-015-066.pools.arcor-ip.net [84.63.15.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 1617E35C1E2; Wed, 17 May 2006 21:16:30 +0200 (CEST) Date: Wed, 17 May 2006 21:16:38 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1674852159.20060517211638@marcus-boerger.de> To: Stanislav Malyshev Cc: Jason Garber , internals@lists.php.net In-Reply-To: References: <785810036.20060511193536@ionzoft.com> <44647B7A.2070301@php.net> <932738738.20060513112734@marcus-boerger.de> <837405862.20060513223403@ionzoft.com> <36828701.20060514110529@marcus-boerger.de> <31269879.20060514221212@marcus-boerger.de> <1327845846.20060514222154@marcus-boerger.de> <1562034641.20060516203354@marcus-boerger.de> <7.0.1.0.2.20060516235201.090f10a8@zend.com> <7.0.1.0.2.20060516142654.02c78380@zend.com> <596643859.20060516233753@marcus-boerger.de> <7.0.1.0.2.20060516144030.039abe98@zend.com> <1531743211.20060516234945@marcus-boerger.de> <1014418169.20060516181322@ionzoft.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 Stanislav, Wednesday, May 17, 2006, 12:30:35 PM, you wrote: JG>>> private readable $abc; JG>>> - doesn't make sense. JG>>> JG>>> protected readable $abc; JG>>> - sub-class can read, not write JG>>> - not visible outside class JG>>> JG>>> public readable $abc; JG>>> - sub-class can read, and write JG>>> - outside class can read, not write > For me such setup seems quite weird - why adding "readable" keyword to > "public $x" ort "protected $x" makes it read-only? It's not exactly what > word "readable" means - it means you can read, not you can not write. > I'd say adding "readable" means everybody could read it, while writing still Jason was referring to an initial idea of "readonly" that we obviously agree makes no sense. When experimenting with patches i then changed the thing to "readable" in name (syntax) and semantics. > restricted by access modifier, so readable private means only owner can > write, readable protected means owner and descendants can write and > readable public is just public. This would make more sense - if we decide > readable should be a modifier, of course. > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 Best regards, Marcus