delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/26/07:00:23

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Alexei A. Frounze" <alexfru AT chat DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C or C++?
Date: Sat, 26 Jan 2002 15:11:44 +0300
Lines: 25
Message-ID: <a2u5j5$1445ui$1@ID-57378.news.dfncis.de>
References: <a2l20p$qdv$1 AT rivage DOT news DOT be DOT easynet DOT net><rYU38.1222$D6 DOT 3530 AT news DOT iol DOT ie> <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> <wky9ilo610 DOT fsf AT eth DOT net>
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 <drguruolai AT eth DOT net> 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/



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019