Re: do_declare_property()

From: Date: Wed, 12 Jul 2000 15:25:23 +0000
Subject: Re: do_declare_property()
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-24326@lists.php.net to get a copy of this message
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. *

« previous php.dev (#24326) next »