Re: Future



Sanyin wrote:
So polymorphism doesnt exists with templates?

AFAIK, templates and generics have the same polymorphic capabilities.
Which are basically whatever mechanisms the underlying language provides
(OO inheritance, interfaces, etc) and whatever kind of "duck typing" one
can cook up from the template/generic itself.

--
Brian Moelk
Brain Endeavor LLC
bmoelk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: The Language I want
    ... inheritance of interfaces from concrete types. ... Generics is a huge mess. ... Templates or hygenic macros are not generics! ...
    (comp.lang.misc)
  • Re: The Language I want
    ... inheritance of interfaces from concrete types. ... modules and packages. ... Templates or hygenic macros are not generics! ...
    (comp.lang.misc)
  • Re: CPU recommendations?
    ... extern void startMotor; ... but MI (especially interface inheritance) ... Things like RTTI and exceptions give little value for money (or source code clarity or generated code quality), ... I've seen templates that provide neat and flexible ...
    (comp.arch.embedded)
  • Re: CPU recommendations?
    ... extern void startMotor; ... the interface definition. ... generated or used for templates, ... Interface inheritance - In this ...
    (comp.arch.embedded)
  • Re: template specialization
    ... >> Second, if you're dealing with a class heirarchy, why do you need to ... Can't you just overload the function? ... I use templates because I don't want to have to ... Item 41 says "Differentiate between inheritance and templates" -- the ...
    (comp.lang.cpp)