Hello LAUPRETRE,

Wednesday, September 12, 2007, 3:32:13 PM, you wrote:

>> From: Pawel Stradomski [mailto:[EMAIL PROTECTED] 
>>
>> B), but what with following language construct:
>> 
>> function doSomething (Service s) {...}
>> 
>> PHP tries to autoload type Service, but it can't know if it's 
>> looking for interface or class. Both are possible.

> Correct. I didn't consider this case because I didn't know this syntax for 
> interfaces.

In general it is not a question of syntax. Interfaces are purely a special
case of classes and cannot be treated differently outside of some engine
stuff. And even there the difference is only a flag, interface or not.

Best regards,
 Marcus

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

Reply via email to