From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S31N2-0005zk-4j for qemu-devel@nongnu.org; Thu, 01 Mar 2012 03:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S31Mx-0000p3-DF for qemu-devel@nongnu.org; Thu, 01 Mar 2012 03:28:15 -0500 Received: from cantor2.suse.de ([195.135.220.15]:52866 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S31Mx-0000oX-66 for qemu-devel@nongnu.org; Thu, 01 Mar 2012 03:28:11 -0500 Message-ID: <4F4F3318.7030808@suse.de> Date: Thu, 01 Mar 2012 09:28:08 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <4F4DBD19.1040501@samsung.com> <4F4DCCEA.4090303@msgid.tls.msk.ru> <20120229090547.GA80051@cs.nctu.edu.tw> <4F4F2FCB.20605@suse.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] QOM: why "klass" used instead of "class" ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Evgeny Voevodin , Michael Tokarev , qemu-devel@nongnu.org, =?UTF-8?B?6Zmz6Z+L5Lu7?= , Dmitry Solodkiy Am 01.03.2012 09:17, schrieb malc: > On Thu, 1 Mar 2012, Andreas F?rber wrote: >=20 >> Am 29.02.2012 10:05, schrieb ???: >>> On Wed, Feb 29, 2012 at 10:59:54AM +0400, Michael Tokarev wrote: >>>> On 29.02.2012 09:52, Evgeny Voevodin wrote: >>>>> include/qemu/object.h: >>>> [] >>>>> * void my_device_class_init(ObjectClass *klass, void *class_data) >>>>> * { >>>>> * DeviceClass *dc =3D DEVICE_CLASS(klass); >>>>> * dc->reset =3D my_device_reset; >>>>> * } >>>>> * >>>>> >>>>> Why to use "klass", not "class"? >>>> >>>> Because in C++, "class" is a reserved word. It is quite typical idi= om >>>> to replace class with klass in (public) headers. >>> >>> I thought QEMU is written in C, right? Is there anything related to= C++? >> >> A while back there was a patch that added a C++ audio backend, for >> instance. I didn't get around to cleaning the patch up yet though. >> >=20 > The real reason, ofcourse, is that germans are taking over the world, > nothing new here. Actually the Haiku patch was by a Swiss and Anthony is American I guess. In German it would be Klasse. ;) Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg