11 Mar
2005
11 Mar
'05
19:36
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. -- JDL