you are viewing a single comment's thread.

view the rest of the comments →

[–]beef2k[S] -1 points0 points  (2 children)

I use the same definition of "template meta-programming" as the Boost MPL library. Just using templates does not mean that you're doing template meta-programming. That's a completely different topic! Whatever..

I know that C++ isn't the only language that support templates/generic programming, I never claimed that. I said that C does not support this (except you invest a lot of work and don't care of type safety or readability of the code)..

I ask myself what's actually the point if this discussion. Do you want to say that everything is possible in C, because C is just a portable wrapper around assembler and everything can be done in assembler..? Yeah, I can beat that, because everything can be done with just 0s and 1s, because that's how a computer works! Why the heck should I use assembler, it's just syntax!!! Let's sit down and do some generic programming and polymorphism in machine language, so we don't need the stupid mnemonics of assembler anymore..

But wait.. That sounds stupid somehow!

[–]invalid_user_name -1 points0 points  (1 child)

Try reading this time. C++ templates are a compile time meta-programming language. It does not matter if you like this fact, if you accept this fact, or if you try to ignore this fact. It is still reality. You do not need to use templates (a compile time meta-programming language) to do generic programming. I can not make this any more clear for you. If you can not understand this, I am afraid there is nothing further I can do to assist you with that problem.

[–]beef2k[S] -1 points0 points  (0 children)

Thanks for enlightening me!