|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - C#4 Covariance/Contravariance
From the last C#: http://codepad.org/kQgbwAqJ Bye, bearophile Jun 07 2009
"bearophile" <bearophileHUGS lycos.com> wrote in message news:h0ggl7$60f$1 digitalmars.com...From the last C#: http://codepad.org/kQgbwAqJ Bye, bearophile Jun 09 2009
Lionello Lunesu wrote:"bearophile" <bearophileHUGS lycos.com> wrote in message news:h0ggl7$60f$1 digitalmars.com...From the last C#: http://codepad.org/kQgbwAqJ Bye, bearophile Jun 09 2009
Robert Fraser: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" Jun 09 2009
bearophile wrote:Robert Fraser: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" Jun 09 2009
Robert Fraser:Errr... isn't that the point of covariance/contravariance? Jun 10 2009
"Robert Fraser" <fraserofthenight gmail.com> wrote in message news:h0mui6$2rlh$1 digitalmars.com...Lionello Lunesu wrote:"bearophile" <bearophileHUGS lycos.com> wrote in message news:h0ggl7$60f$1 digitalmars.com...From the last C#: http://codepad.org/kQgbwAqJ Bye, bearophile Jun 09 2009
Lionello Lunesu wrote:"Robert Fraser" <fraserofthenight gmail.com> wrote in message news:h0mui6$2rlh$1 digitalmars.com...Lionello Lunesu wrote:"bearophile" <bearophileHUGS lycos.com> wrote in message news:h0ggl7$60f$1 digitalmars.com...From the last C#: http://codepad.org/kQgbwAqJ Bye, bearophile Jun 09 2009
|