Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26783 invoked by uid 1010); 16 May 2006 13:43:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26766 invoked from network); 16 May 2006 13:43:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2006 13:43:51 -0000 X-Host-Fingerprint: 195.225.34.5 fw01.axit.nl Received: from ([195.225.34.5:26353] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 5C/B3-19568-717D9644 for ; Tue, 16 May 2006 09:43:51 -0400 Message-ID: <5C.B3.19568.717D9644@pb1.pair.com> To: internals@lists.php.net References: <785810036.20060511193536@ionzoft.com><7.0.1.0.2.20060515210559.06acd350@zend.com><1217741491.20060515174322@ionzoft.com><89.E7.19568.50199644@pb1.pair.com><7.0.1.0.2.20060516133953.09045a30@zend.com><63.CD.19568.525B9644@pb1.pair.com> <4858f9d90605160625u11fcaef8ta07fc199558eca9f@mail.gmail.com> Date: Tue, 16 May 2006 15:31:15 +0200 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-Posted-By: 195.225.34.5 Subject: Re: [PHP-DEV] private, protected, readonly, public From: r.korving@xit.nl ("Ron Korving") That's a good point. It was just an idea really, hoping to provide an easy way out for the whole discussion ;) Ron ""Stefan Walk"" schreef in bericht news:4858f9d90605160625u11fcaef8ta07fc199558eca9f@mail.gmail.com... On 5/16/06, Ron Korving wrote: > > class Foo > { > private $bar = 5; > } > > $foo = new Foo(); > echo $foo->bar; // prints 5 > $foo->bar = 4; // error > > ?> I'm against visible private variables. If they are visible, they are part of the interface of the class, which means changing the implementation means a BC break. If this functionality is going in, please do it only for protected... Regards, Stefan