Re: Protecting variables and functions? Like C#

From: Date: Wed, 19 Sep 2001 13:24:31 +0000
Subject: Re: Protecting variables and functions? Like C#
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-67840@lists.php.net to get a copy of this message
thanks tim, but do you know wheter they are gonna implement such a feature cuz that's somethgin that the language actually must have to become really professional or somethign, i wish i could do cprogramming myself cuz then i would have implemented it a long time ago :-) Seen ur site by the way, looks a promising template system! Warm regards, Emile Bosch Tim <infoz@earthlink.net> schreef in berichtnieuws 1000906159.21097.14.camel@deli.lan... > This would certainly be a nice feature to have, especially if you've > done any development with Java or C++ in the past. > > Many PHP class authors adopt a convention that variables or functions > that start or end in an underscore ("_") should be treated as private > and used at your own risk, i.e. they may change in a future release of > the class or not work properly/safely when accessed directly. > > - Tim > http://www.phptemplates.org > > On Wed, 2001-09-19 at 09:00, Emile Bosch wrote: > > I am a huge fan of php but i am kinda scared by c# i really like it's > > ability to make functions and variable not accessible and therefore force > > the user to use a function instead of accessing it indirectly. >

« previous php.general (#67840) next »