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"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] On 5/16/06, Ron Korving <[EMAIL PROTECTED]> wrote: > <?php > > 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php