Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: which of these 3 casts would you prefer? Date: Sun, 28 Aug 2011 10:06:33 +1200 Lines: 21 Message-ID: <9bt839FopsU3@mid.individual.net> References: <4e5939a5$0$3061$7b1e8fa0@news.nbl.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 0tSmaQw7jeDBenLA/wv7XghwxmWz5lOJzuSKfWjUmYxQxDiTGM Cancel-Lock: sha1:jys300ULzYW4hMmj7PE2desZY8Q= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:9375 On 08/28/11 09:37 AM, BGB wrote: > On 8/27/2011 11:38 AM, Juha Nieminen wrote: >> >> The major problem in C is not the lack of dynamic binding. It's the >> lack of RAII and templates. (And, to some extent, exceptions.) > > RAII normally only really deals with cases which can be dealt with > manually though (apart from exceptions, which also don't exist in C, and > things like longjmp are rarely used). The beauty of RAII is you don't have to implement it manually! This eliminates a whole class of common programming errors. > also, several other major languages, such as Java and C#, also lack RAII > (with exceptions, this behavior is handled by the use of a "finally" > clause). Yet another manual kludge.. -- Ian Collins