AW: [PHP-DEV] PDM Meeting Notes
| From: | Matthias Pigulla | Date: | Wed, 23 Nov 2005 17:40:37 +0000 |
| Subject: | AW: [PHP-DEV] PDM Meeting Notes | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-20271@lists.php.net to get a copy of this message | ||
> Anyway, I see only one use case for interface constructors:
...
I also thought about that:
$whichClass = ...
if ($whichClass instanceof ISomehowConstructable)
$foo = new $whichClass(...);
would even work without reflection, but of coure would require to change
instanceof a little, too - similar to the way is_subclass_of works right
now.
-mp.