P
PJ6
I just stumbled across an apparent generics limitation that I don't
understand. In a generic class's type list, why can't the compiler be made
aware of the types' contructors? Right now the compiler can only pay
attention to the New declaration to get its contructor logic, and as such,
only call paramaterless constructors. It strikes me as unnecessarily
restrictive, and I wonder what the reason behind that was.
Paul
understand. In a generic class's type list, why can't the compiler be made
aware of the types' contructors? Right now the compiler can only pay
attention to the New declaration to get its contructor logic, and as such,
only call paramaterless constructors. It strikes me as unnecessarily
restrictive, and I wonder what the reason behind that was.
Paul