DMD 0.150 release

xs0 xs0 at xs0.com
Wed Mar 22 12:01:32 PST 2006


Stewart Gordon wrote:
> xs0 wrote:
>> Stewart Gordon wrote:
>>> xs0 wrote:
>>>> Walter Bright wrote:
>>>>> I wanted to get the interface covariant problem fixed for the 
>>>>> library guys.
>>>>>
>>>> Out of curiosity - how did you implement it?
>>>
>>> The same way in which covariantly overriding a class method is 
>>> implemented, surely.  Strikes me as trivial 
>>
>> Well, there's quite a difference between classes and interfaces in 
>> handling covariance:
>>
>> - all class references to the same object have the same value (i.e. 
>> they point to the same address), regardless of their type
>> - interface references to the same object, on the other hand, don't 
>> point to the same address
> 
> I think we are talking at cross purposes.

Could be..

> What is this other issue you're talking about, which is also fixed?

I was just trying to say covariance is not done the same way with 
interfaces as with classes, and is not quite as trivial :)


xs0



More information about the Digitalmars-d-announce mailing list