From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2dW4-0002LJ-0G for qemu-devel@nongnu.org; Wed, 29 Feb 2012 02:00:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2dW2-00062P-Az for qemu-devel@nongnu.org; Wed, 29 Feb 2012 01:59:59 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:41830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2dW2-00061d-3d for qemu-devel@nongnu.org; Wed, 29 Feb 2012 01:59:58 -0500 Message-ID: <4F4DCCEA.4090303@msgid.tls.msk.ru> Date: Wed, 29 Feb 2012 10:59:54 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <4F4DBD19.1040501@samsung.com> In-Reply-To: <4F4DBD19.1040501@samsung.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QOM: why "klass" used instead of "class" ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Evgeny Voevodin Cc: qemu-devel@nongnu.org, Dmitry Solodkiy 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 = DEVICE_CLASS(klass); > * dc->reset = my_device_reset; > * } > * > > Why to use "klass", not "class"? Because in C++, "class" is a reserved word. It is quite typical idiom to replace class with klass in (public) headers. /mjt