[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 0/8] qom: Use qlit to represent property defaults
From: |
Eduardo Habkost |
Subject: |
Re: [PATCH v2 0/8] qom: Use qlit to represent property defaults |
Date: |
Thu, 19 Nov 2020 12:55:31 -0500 |
On Thu, Nov 19, 2020 at 06:23:30PM +0100, Paolo Bonzini wrote:
> On 19/11/20 18:13, Eduardo Habkost wrote:
> > > What's left?
> > Enums. Enums properties are a mess to implement, and I plan to
> > tackle them later.
> >
> > On all other cases, the external representation of the property
> > value is similar to the internal representation. In the case of
> > enums, the external representation is a string, but the internal
> > representation is an integer.
> >
>
> I would have expected a string QLit to work with enums, is there a reason
> why it doesn't?
It would work, but it would be more inconvenient for callers.
Right now they use the C enum constant instead of a string.
--
Eduardo