Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83085 invoked from network); 24 Oct 2014 10:37:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2014 10:37:11 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Received: from [78.32.209.33] ([78.32.209.33:57233] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/73-62277-6DB2A445 for ; Fri, 24 Oct 2014 06:37:11 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.72) (envelope-from ) id 1XhcF1-0005kL-SY for internals@lists.php.net; Fri, 24 Oct 2014 11:37:07 +0100 Date: Fri, 24 Oct 2014 11:37:07 +0100 To: internals@lists.php.net Message-ID: <20141024103707.GP4025@phcomp.co.uk> Mail-Followup-To: internals@lists.php.net References: <6E04B9BE-854E-4112-8C74-7D90BD8BFE95@ajf.me> <20141024102157.GO4025@phcomp.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Re: [PHP-DEV] [RFC] Readonly Properties From: addw@phcomp.co.uk (Alain Williams) 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