Re: Protecting variables and functions? Like C#

From: Date: Wed, 19 Sep 2001 15:57:29 +0000
Subject: Re: Protecting variables and functions? Like C#
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-67868@lists.php.net to get a copy of this message
----- Original Message ----- From: "Tim" <infoz@earthlink.net> To: <php-general@lists.php.net> 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.

« previous php.general (#67868) next »