On 20 Apr 2004 at 11:22, George Schlossnagle wrote:

> PHP doesn't support this, regardless of you being able to tell them 
> apart, scalar types in PHP are isomorphic.

Yes, I know. This is why I am against strict parameter checking.

> > Provided that one has access to the interfaces...
> 
> I must not understand this comment.  How can you implement an 
interface 
> you don't have knowledge of?

I meant in some cases you cannot change the underlying interface 
or base class. Classes in third-party libraries or internal classes, for 
example.
 
> The fact is that since PHP doesn't support parameter based 
method 
> dispatching, you _can't_ implement both A and B, since you can 
not 
> comply with both signature contracts simultaneously.

IMO I should, using variable arguments. This is currently impossible.

-- 
Ferdinand Beyer
<[EMAIL PROTECTED]>

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

Reply via email to