From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpyKi-0002rA-KL for qemu-devel@nongnu.org; Wed, 25 Jan 2012 03:36:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpyKc-0002hI-MN for qemu-devel@nongnu.org; Wed, 25 Jan 2012 03:35:56 -0500 Message-ID: <4F1FBE64.2010109@suse.de> Date: Wed, 25 Jan 2012 09:33:40 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1327433600-7403-1-git-send-email-aliguori@us.ibm.com> <1327433600-7403-28-git-send-email-aliguori@us.ibm.com> <4F1F0E2D.2020706@web.de> <4F1F12E7.2020309@us.ibm.com> <4F1F1C28.4040600@web.de> <4F1F1E91.50609@codemonkey.ws> <4F1F233B.8040804@web.de> <4F1F2875.3050509@codemonkey.ws> <4F1F2B77.2020703@web.de> <4F1F38B6.7000506@codemonkey.ws> In-Reply-To: <4F1F38B6.7000506@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 27/28] sysbus: apic: ioapic: convert to QEMU Object Model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , Jan Kiszka , Paul Brook , qemu-ppc@nongnu.org, Aurelien Jarno , Gerd Hoffmann Am 25.01.2012 00:03, schrieb Anthony Liguori: > On 01/24/2012 04:06 PM, Jan Kiszka wrote: >> On 2012-01-24 22:53, Anthony Liguori wrote: >>> But I don't like this. The problem is that the declarative syntax we >>> have doesn't distinguish between "not-specified" and >>> "zero-initialized". >> >> That's surely solvable. >=20 > Please try :-) >=20 > I've spent a good chunk of time mulling this over and could not find an > acceptable solution. I think the same is true for the GObject folks. >=20 > There is a declarative solution for this that I know of, a C++ class > definition ;-) So what's the reason not to go with one of the object-oriented, C-compatible languages GCC supports, like C++ or Objective-C/C++? (Objective-C has native reflection capabilities fwiw.) Personally I disliked those trivial mini init functions in the initial 2/4 series, too, but I don't really mind an imperative approach either. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg