You're viewing a comment by Zach T and its responses.

Zach T Permalink
June 18, 2010, 16:49

Alain Bo:

Because there's a mathematical theory that underpins programming languages, and the terms like "overloading" "generic programming" and "casting" are terms invented on top of *that* language to simplify matters for mere mortals. In that language, they are the same. Generic programming *is* compile-time polymorphism. This is a well understood fact. That people refer to it by a more friendly name is just a matter of convenience.

Comment Responses

Alain Bo Permalink
June 19, 2010, 13:27


Thanks for the info. Maybe I don't hang around the right corners on the Internet. I arrived at this blog from the reddit C++ section and the title of the article is "... Polymorphism in C++." I expected something about C++. What I got instead is that it's possible to talk about different techniques in the same article because these techniques can also be named "something" polymorphism.

I learned something new so it's not all bad.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "antispam_224": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.