Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44958 invoked from network); 7 Apr 2016 18:43:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2016 18:43:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 212.232.28.125 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.28.125 mx204.easyname.com Received: from [212.232.28.125] ([212.232.28.125:50322] helo=mx204.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/83-48788-26AA6075 for ; Thu, 07 Apr 2016 14:43:47 -0400 Received: from cable-81-173-133-226.netcologne.de ([81.173.133.226] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aoEu7-0000iP-4t for internals@lists.php.net; Thu, 07 Apr 2016 18:43:43 +0000 Reply-To: internals@lists.php.net References: <56ED495C.80809@fleshgrinder.com> <57069A72.7030100@fleshgrinder.com> <5706A182.6080401@gmail.com> To: internals@lists.php.net Message-ID: <5706AA50.6080207@fleshgrinder.com> Date: Thu, 7 Apr 2016 20:43:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <5706A182.6080401@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nMbWdPj8RISq5q34VsXQFGUxiNgX8wJmN" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] Access and Visibility Modifiers From: php@fleshgrinder.com (Fleshgrinder) --nMbWdPj8RISq5q34VsXQFGUxiNgX8wJmN Content-Type: multipart/mixed; boundary="iqmTJ5a0MnxxAvijh37KsP4QBr4tCTsaG" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net Message-ID: <5706AA50.6080207@fleshgrinder.com> Subject: Re: [PHP-DEV] Access and Visibility Modifiers References: <56ED495C.80809@fleshgrinder.com> <57069A72.7030100@fleshgrinder.com> <5706A182.6080401@gmail.com> In-Reply-To: <5706A182.6080401@gmail.com> --iqmTJ5a0MnxxAvijh37KsP4QBr4tCTsaG Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 4/7/2016 8:05 PM, Rowan Collins wrote: > Fleshgrinder wrote on 07/04/2016 18:35: >> I would like to change above definition for properties since the*var* >> deprecation was voted negative: >> >> # Properties >> private :=3D limited to the current class >> protected :=3D limited to the current and child classes >> var :=3D limited to the current assembly >> public :=3D global >=20 > I'm not convinced of the value of reusing the keyword in this way. To > me, there is nothing in the term "var" that means "slightly less than > public", and if we want to have package/assembly/whatever visibility, w= e > should reserve a new keyword for that use. >=20 The original definition was # Properties private :=3D limited to the current class protected :=3D limited to the current and child classes :=3D limited to the current assembly public :=3D global In other words: same as Java without any modifier. I only changed the proposal because var is to be kept and the current semantic of it (implicit public) but not being truly equal motivated me to change the proposal and to give it a new meaning. Note that the meaning of *var* does not change for old classes that are not using the proposed access/visibility keyword because they are in the global namespace and thus implicitly public. Hence, the special *var* case would finally get a real meaning and would not be an alias anymore. On 4/7/2016 8:05 PM, Rowan Collins wrote: > Meanwhile, it might be worth checking the list archives for previous > discussions of package visibility; I know it has come up a couple of > times recently, in various forms, so it would be good not to repeat the= > same points again and again. >=20 I check what I can dig up. :) --=20 Richard "Fleshgrinder" Fussenegger --iqmTJ5a0MnxxAvijh37KsP4QBr4tCTsaG-- --nMbWdPj8RISq5q34VsXQFGUxiNgX8wJmN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXBqpUAAoJEOKkKcqFPVVrPn4QAIgcbni0ujRPdO2N3L47EBPt uqzYAhdZy0wn5c0SiKtJ2X+x0rzgMluGpDalCQY5oPRj7lzUVbRPk9RhyrBLj3NG RVljO6yc+qMpAt+76qBNDs2Hh47u/gxs9eSTGsTlAxCQW6PftzmU0FLDaI3IcN6y rHS4iNBD38mfy2woMV//F/xMZYNXEZJX2PMx01nZGUtSQKla/hmwX7mDupXFW/8n IOWO9BjH8Hg68GSgThw52n1RmJRPdXFcFDLsvb56oXkMabU4ka8H/DPqhjiN4n1t S+N1h65qQmgd4aaBejyKEU8M55UVJEqoukiRzuI9VDLYiF4vCWoBJD11eP+SMgj1 oGDKxiIph4j8X3T1VBf5Ln3wFtQWDSsIYO9a6mPwnRxgT9oVILV9ml/bicir2bm/ tQ3C8tW7Us7S0fdL4Q5gK4Gwrss03WLI9xAY579wLTtYwiMY+B60GIWyjGZo3gr+ LHn3S79vip5DCiDVw3Tb4xk3gnrpkNMjg5SPd+bv4kTsk9AUAyjQmFvEqkJDBeoP sSRsjB1GkbWiRxoEGmMzPK61WVR+iKs9o8Sl7NRx8ZOM+ZhnDbKgVdBUaRl6URI8 bM1EjEgohSUYYgGmTDsQ6KjS58UeF1sY6wDpzmR2Vka500V26TMpxssd1hBHKjG+ j5zgW40AzSm5lF39Bvsj =C64Y -----END PGP SIGNATURE----- --nMbWdPj8RISq5q34VsXQFGUxiNgX8wJmN--