From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ3b3-0004FK-Bi for qemu-devel@nongnu.org; Thu, 06 Aug 2009 10:05:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ3ay-0004Cp-NA for qemu-devel@nongnu.org; Thu, 06 Aug 2009 10:05:33 -0400 Received: from [199.232.76.173] (port=53930 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ3ay-0004Ci-9C for qemu-devel@nongnu.org; Thu, 06 Aug 2009 10:05:28 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:43214) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ3ax-0005jJ-EQ for qemu-devel@nongnu.org; Thu, 06 Aug 2009 10:05:27 -0400 In-Reply-To: <4A7AE302.30304@redhat.com> Subject: Re: [Qemu-devel] Re: [PATCH 3/3] Introduce QNumber data type From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Thu, 06 Aug 2009 16:05:37 +0200 CEST Message-Id: <804085774-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: aliguori@us.ibm.com, lcapitulino@redhat.com, filip.navara@gmail.com, qemu-devel@nongnu.org > On 08/06/2009 04:52 PM, Luiz Capitulino wrote: > > + > > +typedef struct QNumber { > > + QObject base; > > + union { > > + int n=5Fint; > > + int64=5Ft n=5Fint64; > > + } number; > > +} QNumber; > > > > Why not have an int64=5Ft exclusively=3F > > Also, we need floating point support. So probably need to split this > into QInt and QFloat. Aw you sure all this won't clash with some Qt class if some fold tries to mix both=3F Now, I use the BeAPI so I don't really care, but still. And I still wonder why not just use a real OO language instead of faking. Fran=C3=A7ois.