From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     Feature/Change Request
Bug description:  Private, Protected variables in classes

I have a good idea. It is extremely easy to implement private, protected variables in 
classes.

PHP can use the name mangling of variables to implement private variables in classes. 
This technique is used by python language.

What you do is - PHP will read the class and simply change the variable names to 
<variablename>_timestamp. Where timestamp is unique id got by time() function.

Classes need private, protected variables. What do you say??




-- 
Edit Bug report at: http://bugs.php.net/?id=11756&edit=1



-- 
PHP Development 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]

Reply via email to