billroper: (Default)
[personal profile] billroper
Pure virtual functions in template classes: necessary evil or tool of the devil?

Date: 2004-08-23 08:32 pm (UTC)
From: [identity profile] shsilver.livejournal.com
I'm not sure that is a binary choice. There is always the option of Both of the Above.

Date: 2004-08-23 08:38 pm (UTC)
From: [identity profile] tnatj.livejournal.com
Well, if the template class is named "Devil" ...

(Draw your own conclusion.)

You gotta be kidding...

Date: 2004-08-24 02:28 am (UTC)
From: [identity profile] scs-11.livejournal.com
Tool of the devil, of course.

Mind you, I think C++ as a whole went over the line long ago and became a kind of reducto ad absurdum on OOP. Much better to choose the relative sanity of Objective C or Python. But it's not like you have any choice about it at this point, tho. You're in bed with him, better hope his not the Devil.

Date: 2004-08-24 05:07 am (UTC)
From: [identity profile] tigertoy.livejournal.com
I could be convinced that templates in general were a bad idea for C++, but if they're going to exist at all, they should work in all their permutations. Including allowing pure virtual functions in template classes. It might be pretty difficult to come up with an example where using them is actually the best solution, but when that situation comes along, I don't want to discover that the compiler doesn't support it, and I *certainly* don't want to discover that the compiler doesn't support it because the compiler writer decided it was "evil".

Profile

billroper: (Default)
billroper

June 2025

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 2nd, 2025 12:59 pm
Powered by Dreamwidth Studios