Jerry Feldman wrote:
On Thursday 10 March 2005 2:30 pm, John Lamb wrote:
Davi de Castro Reis wrote:
Yes. Boost has the concept_check stuff, but AFAIK, there is no runtime overhead at all. Also, you can guarantee the interface mixing templates and inheritance.
template <class T : public myInterfaceClassName> class ...
John, We are talking Java 1.5 where generics are introduced, not C++.
Hvit? Now I am confused. AFAIK, there is no 'template' keyword in Java and it would use 'extends' or 'implements' in place of ':' if it allows such things.
It's a nice idea though.. I like the idea that something important can be expressed through the syntax rather than just constructed through an idiom. This is true, but we were talking about Java Generics, which is effectively
On Friday 11 March 2005 2:36 pm, John Lamb wrote:
the Java version of the C++ Templates.
Time for someone to invent a new language :-)
--
Jerry Feldman