Re: naming conventions...
| From: | Martin Jansen | Date: | Wed, 16 Oct 2002 17:59:06 +0000 |
| Subject: | Re: naming conventions... | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10084@lists.php.net to get a copy of this message | ||
On Tue Oct 15, 2002 at 01:1241PM -0700, Matthew Bogosian wrote:
> Why is it that public global variables must be prefixed by a
> '_[Package_Path]_[ClassName]_' (which is normally the convention for
> indicating private access),
Usually global variables used by PEAR packages are private variables
and one should not access them from outside the package code. So the
prefix makes sense here.
> If I have a global variable that is not meant to be used by subclasses,
> do I then use '__[Package_Path]_[ClassName]_' (with two underscores)?
That's free to you, IMO.
--
- Martin Martin Jansen
http://martinjansen.com/