Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] Implicit "this" pointers. From: Andi Gutmans (andi <email protected>)
Date: 04/21/00

This won't be supported in the near future (if at all) with PHP 4.0.0 so close.

Andi

At 10:45 PM 4/20/00 -0700, Szii wrote:
>Can we get them for objects, please please please?
>
>class me
>{
> var $something;
> function me()
> {
> wave(); #won't work! needs $this->
> SayHi(); #here either! needs $this->
> $something = "Does this work?" # won't work, needs $this->
> $this->wave(); #works
> }
> function SayHi()
> {
> echo "Hi!";
> }
> function wave()
> {
> echo "*wave*";
> }
>}
>
>
>It's very tedious to keep tying $this-> over and over. Maybe I'm
>just too spoiled on C++...
>
>-Szii
>
>--
>PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
>To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
>For additional commands, e-mail: php4beta-help <email protected>
>To contact the list administrators, e-mail: php4beta-admin <email protected>

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>