X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: C or C++? Date: Sat, 26 Jan 2002 15:11:44 +0300 Lines: 25 Message-ID: References: <3C508EA8 DOT 5045AD53 AT earthlink DOT net><3C51A889 DOT 24461A22 AT pq DOT fta-berlin DOT NOSPAMPLEASE DOT de><1659-Fri25Jan2002213209+0200-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: ppp94.avallon.ru (213.248.25.94) X-Trace: fu-berlin.de 1012046257 37885906 213.248.25.94 (16 [57378]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com G Anna wrote in message news:wky9ilo610 DOT fsf AT eth DOT net... > But I remember Bjarne Stroustrup stating in his book "The C++ > Programming Language" that C has been retained as a subset of C++ > (that has been one of the design goals of C++). > > "Except for minor details, C++ is a superset of the C programming > language." [Check out the "Preface to the First Edition" of the above > mentioned book. ] Right. C is a subset of C++. The reason for that is making it possible to have pieces of C code in C++ programs. While one can argue that it's not a nice thing to mix C and C++ techniques, another can have insufficient time or resources to port a perfectly working C library to C++ and will benefit from C being a subset of C++ because he'll not have to rewrite the complete thing. Good Luck -- Alexei A. Frounze http://alexfru.chat.ru http://alexfru.narod.ru http://welcome.to/pmode/