Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!prichard.zen.co.uk.POSTED!not-for-mail From: Nobody Subject: Re: Why C++ is vastly superior to C Date: Sat, 21 May 2011 09:09:06 +0100 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.c++ References: <93dhneFlpiU7@mid.individual.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines: 20 Organization: Zen Internet NNTP-Posting-Host: 8df1a583.news.zen.co.uk X-Trace: DXC=cn\_eY<]Z]STM0WAaIh?=Z0g@SS;SF6nWRiiCXJE[K>WbI^j>cZT0CQWNBDSDDkZFTBIW> The basic OOP concepts of objects and classes (with virtual methods) >> can be implemented easily enough in C (look at a C GUI toolkit such >> as Xt or GTK), but RAII is the point at which you have to decide >> whether to go to C++ or go without. > > That seems like a juxtaposed statement, for it is C++ exceptions that > instigate the NEED for the RAII idiom. C exceptions (i.e. longjmp) also require it. > Without exceptions, RAII is merely a convenience (still nice, but not > important/necessary). I suppose it depends upon whether legibility is important/necessary or merely a convenience. The contortions required to get by without it can be pretty ugly. Similarly, one could ask whether high-level languages are important/necessary, or merely a convenience.