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>

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

Reply via email to