I also don't think inheritance alone is sufficient , you need some sort of interface ( ok you can use abstract base classes for this but you need multiple interface support) . More importantly you also need some form of generics/templates and isn't this what multi variable classes give you eg how else do you do myCollection<newtype> ? If not your back to forcing people to cast from a base class like object which is probably no acceptable.
I would say you could make do with interfaces and no inheritance though its easy to have both as they have a similar underlying mechanism. Most newer large C# and Java projects use mainly interfaces now. Ben The overwhelming majority of type class instances are single variable. Single variable classes are nicely captured by inheritance. This raises the question: do we *need* multivariable classes outside of compiled builtins, and if not, is single inheritance and overloading sufficient? Shap
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
