Re: private, protected, readonly, public
| From: | Marcus Boerger | Date: | Sat, 13 May 2006 09:27:34 +0000 |
| Subject: | Re: private, protected, readonly, public | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23328@lists.php.net to get a copy of this message | ||
Hello Etienne,
Friday, May 12, 2006, 2:11:38 PM, you wrote:
> Hi,
> my 2c:
> 1) it shouldn't replace the visibility definition: we could also have
> protected readonly properties.
same here visibility and read/write control are two seperate things.
> 3) how would you check if the property if readonly ? Trying it could
> result to a Fatal error as you wanted. You would then need a
> isReadonly() method/function: the function call wouldn't be spared.
We could add this to reflection api easily.
Best regards,
Marcus