From: imp@boulder.parcplace.com (Warner Losh) Subject: Re: ALPHA-pl11 available on nic: C++ support Date: Thu, 8 Jul 1993 20:10:31 GMT
In article <C9ux90.KpF@murdoch.acc.Virginia.EDU>
lfoard@hopper.ACS.Virginia.EDU (Lawrence C. Foard) writes:
>Its simply a myth that C++ is required for object oriented
>programming. I use object oriented programming all the time in C, the
>only thing C++ would do is eliminate some typing, but with a cost in run
>time and code size.
It is simply a myth that you need C to do object oriented program at
all. I've done it in assembler. All C saves you is typing, and it
costs you code size. :-)
Give me a break. I've been using C++ for years, and C for years
before that. It is hard to get "virtual functions" right all the time
in C. It can be done (nb Xt), but it is a pain. C++ makes it
transparent and easy. It is useful in its own right.
Using classes makes things easier. The compiler takes care of all the
work for you, rather than giving you a chance to screw it up yourself.
It also cross checks more things than C does (even ANSI C) and allows
you to force your own deallocation routines to be called when an
object goes away (useful for memory leaks and such).
Warner
-- Warner Losh imp@boulder.parcplace.COM ParcPlace Boulder I've almost finished my brute force solution to subtlety.