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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to