Re: PHP 4.0 Bug #4612 Updated: Too much of $this
| From: | Andrei Zmievski | Date: | Fri, 26 May 2000 16:59:08 +0000 |
| Subject: | Re: PHP 4.0 Bug #4612 Updated: Too much of $this | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19525@lists.php.net to get a copy of this message | ||
On Fri, 26 May 2000, Antonio Dias wrote:
> Or a new operator. IMHO the best choice would be "::" like in C++, that is
> an alias for "this". We can achieve a very good readability and
> maintain compatibility with php3 if "::" is implemented as an alias
> for this.
>
> This way we can do
>
> ::test = something;
>
> in place of
>
> $this->test = something;
Except it'd be completely opposite to C++'s use of ::. In C++ ::
operator indicates that what it's applied to is a global variable or
function.
-Andrei
* We reason deeply, when we forcibly feel. *