This would produce a compile error, cannot define set, property is read-only.

> -----Original Message-----
> From: Pierre Joye [mailto:pierre....@gmail.com]
> Sent: Thursday, October 11, 2012 7:43 AM
> To: Sebastian Krebs
> Cc: internals@lists.php.net
> Subject: Re: [PHP-DEV] [RFC] Propety Accessors v1.1
> 
> hi,
> 
> On Thu, Oct 11, 2012 at 2:16 PM, Sebastian Krebs <krebs....@gmail.com> wrote:
> 
> > public read-only $hours {
> >     get { /* .. */ }
> >     set { /* .. */ }
> > }
> 
> that should not be possible or it will be too complicated to document or to 
> use. Combinations of the readonly option and a setter
> should not be possible.
> 
> 
> 
> Cheers,
> --
> Pierre
> 
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
> 
> --
> PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: 
> http://www.php.net/unsub.php


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

Reply via email to