[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] Libosinfo 0.2.2



On Mon, Dec 10, 2012 at 08:40:02PM +0200, Zeeshan Ali (Khattak) wrote:
> - OsinfoList is now instantiable and all its subclasses has been deprecated.
>   Newer code should use OsinfoList directly.

This is not quite right. Derived classes should still be used and are not
deprecated.
osinfo_foolist_new_copy, osinfo_foolist_new_filtered,
osinfo_foolist_new_intersection and osinfo_foolist_new_union have been
deprecated in subclasses and moved to the OsinfoList class. The reasoning
for that is that these helpers were duplicated in all OsinfoList classes
while they were only useful for a few of these subclasses. Having them in
the base class makes the API smaller and simpler. One drawback of this
approach is that the return value of these functions is now OsinfoList,
though its runtime type will be the same type as its list arguments.

Christophe

Attachment: pgppIkLpkn1Gj.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]