Re: PHP 4.0 Bug #4612 Updated: Too much of $this

From: Date: Fri, 26 May 2000 16:56:29 +0000
Subject: Re: PHP 4.0 Bug #4612 Updated: Too much of $this
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19524@lists.php.net to get a copy of this message
> 3) Introduce a new keyword - similar in concept to global - that declares an > identifier as refering to a member: the keyword `member' would be a good > candidate - this would also be backwards compatible. The disadvantage of this > scheme is that it'd be a pain (but probably not as much as $this). 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; Cheers, Antonio Dias

« previous php.dev (#19524) next »