C#4 Covariance/Contravariance
Robert Fraser
fraserofthenight at gmail.com
Tue Jun 9 17:25:44 PDT 2009
Lionello Lunesu wrote:
>
> "bearophile" <bearophileHUGS at lycos.com> wrote in message
> news:h0ggl7$60f$1 at digitalmars.com...
>> From the last C#:
>> http://codepad.org/kQgbwAqJ
>>
>> Bye,
>> bearophile
>
> Lionello likes this
In D if you want to treat a Template!(SomeClass) as a Template!(Object),
it's as easy as "cast(Template!(Object)) cast(void*) x"
More information about the Digitalmars-d
mailing list