Re: [PHP-DEV] do_declare_property() From: Andrei Zmievski (andrei <email protected>)
Date: 07/12/00

On Wed, 12 Jul 2000, Mathieu Kooiman (ggInternet) wrote:
> You can find the class the object was instanctiated from right?
> (var_dump an object, you'll see..)
>
> class ThisIsAClass { }
> $ThisIsAnObject = new ThisIsAClass;
> var_dump($ThisIsAnObject)
>
> This is pretty much the same right as
> function foo (class MyObject $obj) { }
>
> You could use this in a C function..

You're missing the point. In Andi's example, you can't know object type
at compilation.

-Andrei
* If it's never finished, you can't prove it doesn't work. *

-- 
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>