[LC++]Generic programming vs OO inheritance

Mark Phillips mark at austrics.com.au
Thu Aug 16 15:44:51 UTC 2001


Roberto Diaz wrote:
> 
> > I'm still trying to work out how generic programming
> > can be used as a paradigm instead of OO inheritance.
> > I'm still a bit unsure about it.
> 
> Well.. I think you can use generic programing instead of polimorphic code
> only when your code is desingned so all can be done by static-binding then
> it makes more sense to do generic-programing but if you can avoid dynamic
> binding I cant see how can be posible to resolve all with templates.

Could you give me a (hopefully simple) example of when you can't avoid
dynamic binding?

Thanks,

Mark.



More information about the tuxCPProgramming mailing list