[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] 答复: Re: [PATCH v3 1/3] qom: make base type user-creat
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] 答复: Re: [PATCH v3 1/3] qom: make base type user-creatable abstract |
Date: |
Mon, 10 Oct 2016 16:01:52 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Mon, Oct 10, 2016 at 04:45:56PM +0200, Paolo Bonzini wrote:
>
>
> On 10/10/2016 16:32, Lin Ma wrote:
> >>This doesn't make any conceptual sense. UserCreatable is an inteface and
> >>by definition all interfaces are abstract.
> >
> > Sorry for the late reply, I was on vacation.
> > oh...indeed, add '.abstract = true' for an interface is not a good idea.
>
> Perhaps Lin Ma's patch actually made some sense. If all interfaces are
> abstract, why shouldn't object_class_is_abstract say so?
object_class_is_abstract() should say so, but we should not have to
express that manually when defining the interface - anything that is
define as an interface should be automatically abstract
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|