Re: private, protected, readonly, public

From: Date: Mon, 15 May 2006 21:26:49 +0000
Subject: Re: private, protected, readonly, public
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-23421@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Zeev Suraski wrote: > I have to say that in second thought (after realizing what you really > meant) it sounds like a very useful feature. [snip] > In order to push complexity down I'd avoid making this yet another > modifier, and in fact make this an access level, on par with > private/protected/public, that would behave like public, except for when > outside the object scope (i.e., have it between protected and public). > One of the trickey things would be finding an acceptable name, since > 'readonly' implies something which this variable isn't (it's very much > writable, from the right places). Maybe something like 'visible' (of > course preferably we need to find something that begins with 'p'...) How about... 'package' ;) Jasper -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEaPIZFfAeHhDzT4gRA6MwAJ95DrFGcKmn724VR2y8kaKrpNychwCgm4Ep U84/fYGcy2JjbwlIBBlBBqI= =G9a4 -----END PGP SIGNATURE-----

« previous php.internals (#23421) next »