On Thu, Aug 12, 2010 at 9:58 PM, Wallace Turner <[email protected]> wrote: > Thanks for the clarification. > > > The danger with co-variance of arrays is that you can cast an array of > > string to an array of object and then proceed to assign any type of object > > (say an int or a `Foo`) to the array resulting in a run-time error. > > How is that a co-variance issue? I see it more an issue of simply using an > object[ ] array per se.
Because it's the definition of a covariance issue: http://en.wikipedia.org/wiki/Covariance_and_contravariance_%28computer_science%29#C.23 -- silky http://dnoondt.wordpress.com/ "Every morning when I wake up, I experience an exquisite joy — the joy of being this signature."
