RE: [PHP4BETA] Implicit "this" pointers.
| From: | Dan | Date: | Fri, 21 Apr 2000 12:30:03 +0000 |
| Subject: | RE: [PHP4BETA] Implicit "this" pointers. | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13881@lists.php.net to get a copy of this message | ||
Once I got used to the syntax, I like the fact that it forces the scope to
be "within the class" or a local or global.
> -----Original Message-----
> From: Andi Gutmans [mailto:andi@zend.com]
> Sent: Friday, April 21, 2000 3:38 AM
> To: Szii; php4beta@lists.php.net
> Subject: Re: [PHP4BETA] Implicit "this" pointers.
>
>
> 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@lists.php.net
> >For additional commands, e-mail: php4beta-help@lists.php.net
> >To contact the list administrators, e-mail:
> php4beta-admin@lists.php.net
>
> ---
> Andi Gutmans <andi@zend.com>
> http://www.zend.com/
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail:
> php4beta-admin@lists.php.net
>