Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23552 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38584 invoked by uid 1010); 17 May 2006 19:12:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38569 invoked from network); 17 May 2006 19:12:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2006 19:12:06 -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:34871] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 29/9D-19568-6857B644 for ; Wed, 17 May 2006 15:12:06 -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 8B49435C1E2; Wed, 17 May 2006 21:12:03 +0200 (CEST) Date: Wed, 17 May 2006 21:12:11 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1291472965.20060517211211@marcus-boerger.de> To: Sebastian Bergmann Cc: 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> <1677590447.20060517002135@marcus-boerger.de> 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 Sebastian, it simply means that derived classes cannot write that variable. Other languages already allow that and it is actually very convenent. One of the things i really liked about Borland C++. In contrast "protected readbale" means that dervied classes may also write that thing in question. best regards marcus Wednesday, May 17, 2006, 10:26:58 AM, you wrote: > Marcus Boerger wrote: >> private readable $abc; >> - class itself can read and write >> - public for everybody when reading, inside & outside of the class > This means that a private attribute becomes part of the public interface > of a class. I am not sure if this really is desirable. > -- > Sebastian Bergmann http://www.sebastian-bergmann.de/ > GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 Best regards, Marcus