Re: [RFC] Readonly Properties

From: Date: Fri, 24 Oct 2014 10:37:07 +0000
Subject: Re: [RFC] Readonly Properties
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-78301@lists.php.net to get a copy of this message
On Fri, Oct 24, 2014 at 12:29:57PM +0200, Florian Margaine wrote: > > Finally we could bring it all together and sidestep the scoping keywords > > using > > 'var' instead. Thus: > > > > var $callback as 0751; > > > > Would define a property that contains an anonymous function that could be > > called > > by anyone, inspected by the class & related class, but only set by the > > class itself! > > > > To follow up on this, and to give more readable code, we could also use > this: > > var $callback as rwxrw---x; +1, although that would have been: var $callback as rwxr-x--x; Again musing further: var $callback as rwsr-x--x; A callback that when executed/called would have 'private' access permissions on properties! -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h>

« previous php.internals (#78301) next »