Re: parent_ctor()
| From: | Stanislav Malyshev | Date: | Tue, 18 Jul 2000 12:29:46 +0000 |
| Subject: | Re: parent_ctor() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24898@lists.php.net to get a copy of this message | ||
KK>> don't speak C++ fluently, but isn't this what "friends" do
KK>> in C++?
Yeah, in C++ "friends" are those who can see and access each other's
private parts. Weird language ;)
KK>> The first question I ask: Is "private" functionality worthwhile?
IMHO no. I really don't know why anyone would really want it. In most
cases, telling "hey, you shouldn't touch this property!" is enough.
KK>> - Or shall "private" be a second namespace within an object
KK>> which can only be accessed from the inside, so that you can
KK>> have a $this->myvar and a private $this->myvar at the same time?
KK>> This will open a really large can of worms.
Yes, except with serializing and stuff. This will require also significant
changes in Zend Engine, and so - significant development/testing cycle.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665