Re: Private Properties

From: Date: Wed, 12 Jul 2000 11:11:33 +0000
Subject: Re: Private Properties
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24282@lists.php.net to get a copy of this message
"Mathieu Kooiman (ggInternet)" wrote: > class test { > private var $private_var1; > private var $private_var2; > } > > And when we access the property from outside the class, E_ERROR or E_NOTICE. This syntax and a E_NOTICE. I predict that you will need "friend"s in about 15 minutes after you release that feature, because somebody will see need to access private members and methods despite the fact that they have been declared private. My private opinion (visible only for friends :-) is that private members are a technical solution for a social problem, which is better solved in documentation, but then: if it is a feature of C++, it can't be bad, can it? Kristian -- Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99 Using PHP3? See our web development library at http://phplib.netuse.de/

« previous php.dev (#24282) next »