From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs Date: Wed, 24 Nov 2010 19:43:11 +0200 Message-ID: <20101124174311.GL20014@redhat.com> References: <4CED3FE6.50900@redhat.com> <4CED41A0.8060003@redhat.com> <4CED4276.9090103@redhat.com> <4CED445E.30105@redhat.com> <4CED4629.2060804@redhat.com> <4CED4738.2020406@redhat.com> <4CED488D.40806@redhat.com> <4CED4B0E.3030805@codemonkey.ws> <4CED4D36.3060708@redhat.com> <4CED4E5C.5020602@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jes Sorensen , Anthony Liguori , Alexander Graf , Marcelo Tosatti , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52349 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753051Ab0KXRnQ (ORCPT ); Wed, 24 Nov 2010 12:43:16 -0500 Content-Disposition: inline In-Reply-To: <4CED4E5C.5020602@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 24, 2010 at 07:41:48PM +0200, Avi Kivity wrote: > On 11/24/2010 07:36 PM, Jes Sorensen wrote: > >On 11/24/10 18:27, Anthony Liguori wrote: > > > >> The compiler won't generate an error. Only upon a call to > >> file_release() will a null pointer dereference happens whereas in C++, > >> because this paradigm is structured in the language, the compiler can > >> help assist you. > > > >Explicit code means you know what is going on, it means you can debug it > >in gdb and match it. That is a *good* thing! > > Implicit code means that you don't need to debug it. The compiler > gets it right every time. > Best joke ever! -- Gleb.