Re: [PHP-DEV] "::" meaning and documentation From: Stanislav Malyshev (stas <email protected>)
Date: 06/26/00

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>