Posted by Harrie Verveer on 07/18/07 09:35
Check out the discussion here: http://bugs.php.net/bug.php?id=34044
Last comment:
"Long ago we decided against 'friend' declarations."
Kind regards,
Harrie Verveer
---
http://www.ibuildings.nl/blog/authors/Harrie-Verveer
Willem Bogaerts wrote:
> There is no "friend" or package visibility. Sorry.
>
> Yarco wrote:
>> In c++ we could modify the private variable in a class use friend
>> keyword.
>> How could it be done in php?
>>
>> class YourBag
>> {
>> int money;
>>
>> friend class Thief; // friend?
>> };
>>
> Best regards
[Back to original message]
|