override(T)

Steven Schveighoffer schveiguy at yahoo.com
Thu Sep 24 06:47:45 PDT 2009


On Thu, 24 Sep 2009 09:30:46 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> Walter and I discussed last night about contravariance and all and could  
> not find a compelling argument in favor of implementing contravariant  
> arguments right now. The feature is nontrivial to implement, potentially  
> surprising, and has a number of odd corner cases.

I find the general contravariance not to be that compelling, but for sure  
being able to implicitly cast delegates makes a lot of sense, since you  
take the overriding/overloading issues out of the equation.

-Steve



More information about the Digitalmars-d mailing list