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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to