----- Original Message -----
From: "Tim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 9:35 AM
Subject: Re: [PHP] Protecting variables and functions? Like C#
> Private methods and variables are necessary for any serious language
> that supports class libraries, IMHO. There are currently some manual
> methods (i.e. naming conventions) of accomplishing this, but for the
> best results it should be enforced by the compiler/interpreter.
If in fact the language is interpreted and is in plain text then private
functions are only there to keep the programmers from shooting themselves in
the foot.
When distributing compiled or encoded libraries then private functions
become a good feature, since internal functions/methods that are subject to
upgrades are not exposed to the end programmer.
Mark C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]