4/22 Anyone know a good link that explains all of C++'s use of the
keyword mconst?
\_ http://www.parashift.com/c++-faq-lite
Search for const in the text box.
Search for mconst in the text box.
\- perfection
\_ The real PSB would know this already. Wouldn't he?
\_ who the hell said i was psb. i'm not. -!psb
\_ the \- is a psb thing.
\_ only if tailed with "ok tnx." and the spacing has
to be foobared.
\_ The psb shall do as He pleases! --psb #1 Fan
\_ we haven't had a good C++ discussion in a while. It's time to
revisit. Anybody use C++ in a truly object oriented manner? Does
true OO even exist outside of the some lame-ass textbook example
on how the truck class is inherited from the automobile class?
Every C++ prog I've seen is about encapsulating data (foo->bar = 1)
and doing function calls (foo->func(1)). The latest C spec allows
you to do both. So what exactly is the point of OO?
\_ inheritance, virtual funcitons, templates (not really OO)
all make life a lot easier.
\_ inheritance makes life EASIER!?!
have you ever been involved in a
big C++ project?
\_ my personal, limited experience told me that
inheritance is not bad, but multiple-
inheritance is pain in the butt (i.e at least
our company never managed to used it properly
enough to be useful IN THE LONG RUN)
\_ He probably knows someone who took a class from
BH. Does that count?
\_ yes and yes. Yes, inheritance can be a headache
if used poorly, but so can everything. Used
well, inheritance is a godsend.
\_ My current job is a scientific application with a
few 100K lines of code. Fully C++. Yes,
inheritance makes life easier.
\_ It's probably a matter of opinion. But
generally, use composition over
inheritance.
\_ I am so glad I don't work with you.
\_ how do you know you don't?
\_ Are you a total idiot? Use the right tool
for the right job.
\_ i think you should read stroustrup 3rd ed and go argue on
comp.std.c++ |