Re: wacky object idea

From: Date: Mon, 28 Aug 2000 20:07:45 +0000
Subject: Re: wacky object idea
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.dev 
Request: Send a blank email to php-dev+get-31013@lists.php.net to get a copy of this message
Yes, same here. What I really miss is private variables. In most cases I don't want variables to be accessed at all, I want to force people to call the methods instead. I don't know how hard that is to implement.
We´ve already discussed here and came to a conclusion that it´s possible to implement (wihout hassle?) and that a warning(notice?) should be thrown on try to access prviate vars (and functions), that´s a feature to let programmers follow your rules w your classes, I would also welcome to see a private feature that totally stops accessibility to declared vars and methods (eg. you´re able to store sensitive data in o-properties then... 2c

« previous php.dev (#31013) next »