Date: 06/26/00
- Next message: Andi Gutmans: "Re: [PHP-DEV] status of PHP3 development"
- Previous message: Stefan Livieratos: "Re: [PHP-DEV] "::" meaning and documentation"
- In reply to: Ulf Wendel: "Re: [PHP-DEV] "::" meaning and documentation"
- Next in thread: Ulf Wendel: "Re: [PHP-DEV] "::" meaning and documentation"
- Reply: Ulf Wendel: "Re: [PHP-DEV] "::" meaning and documentation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
UW>> That's what I would expect, but why does the snippet work? $this gets
UW>> generated on the fly by some magic I don't understand.
Whu won't it work? BTW, snippet you provided won't even compile - "do" is
a keyword. But why the :: call shouldn't work?
UW>> If "::" introduces static calls what's the syntax to access properties
UW>> and methods of foo from within do() ? Of course this can't be done using
There's no way to do this. Since there's no object of class foo. What your
"$this->bar = 3;" line does is to create new object of "stdClass" in
$this and make "bar" property of it to be equal 3.
-- Stanislav Malyshev stas <email protected> +972-3-6139665-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP-DEV] status of PHP3 development"
- Previous message: Stefan Livieratos: "Re: [PHP-DEV] "::" meaning and documentation"
- In reply to: Ulf Wendel: "Re: [PHP-DEV] "::" meaning and documentation"
- Next in thread: Ulf Wendel: "Re: [PHP-DEV] "::" meaning and documentation"
- Reply: Ulf Wendel: "Re: [PHP-DEV] "::" meaning and documentation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

