"the normal way" that you posted is a virtual destructor. Not a pure virtual destructor.
Printable View
"the normal way" that you posted is a virtual destructor. Not a pure virtual destructor.
Okay, so a pure virtual destructor is used only when you have an abstract base class with no methods.
yeah sort of, it seems kind of wierd. you would do it if you had no other pure virtual methods in it but still wanted to make your class abstract. You COULD have other methods in there though. I can not imagine a circumstance where this would be necessary. For "interfaces" you would normally have other pure virtual and no destructors so they don't apply. But it's there in the language if you ever want it.
ho hum
It sounds like it's there for little guys, or guys with little penises.
interesting perspective
Most guys wouldn't even know about this language feature. That's all I'm saying.
ya, but I strive to be an expert C++ coder and in doing so I think an "expert" should know everything possible about the language, even the obscure.
>I think an "expert" should know everything possible about the language, even the obscure
An expert doesn't know 'everything' in most cases. I see an expert as someone who is capable of dealing with a wide variety of problems because they know where to find the answer, not because they memorized it. Knowing how to use the more common features of a language well is more important than knowing about obcure features and never using them.
-Prelude
lol
well prelude, you can get through the language and accomplish most things pretty well with just the basics. That doesn't mean your an expert. notice also that I said "everything possible" and not "everything" the way you quoted me. I admire C++ and wish to know everything I can. is that somehow wrong? Anyhow, I was not the thread starter.
Get a real compiler so that you can run the code in the books.
>That doesn't mean your an expert.
The definition of an expert is and always has been up for debate. There is a big difference between writing a program with the basic language and writing it well.
>notice also that I said "everything possible" and not "everything" the way you quoted me.
I wasn't aware that knowledge was denied some people. I read 'everything possible' and 'everything' as equivalent because if I had my way, everything possible would be everything. You don't seem to be any different, hence my interpretation of your statement.
>is that somehow wrong?
Not at all, I'm sorry if I gave you that impression.
-Prelude
the code in the books? seems to all be running fine for me. Nothing wrong with VC++. Standard compliant or not it does the job.Quote:
Originally posted by Troll_King
Get a real compiler so that you can run the code in the books.
not sure how this thread turned into an argument prelude, I thought it was a very interesting topic, that's all.
I'll just assume that this whole issue is a 'supported, but not often used' kinda thing :rolleyes: