RE: [PHP-DEV] [RFC] Propety Accessors v1.1

From: Date: Thu, 11 Oct 2012 12:44:39 +0000
Subject: RE: [PHP-DEV] [RFC] Propety Accessors v1.1
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-63349@lists.php.net to get a copy of this message
This would produce a compile error, cannot define set, property is read-only. > -----Original Message----- > From: Pierre Joye [mailto:pierre.php@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.seb@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

« previous php.internals (#63349) next »