On 05/24/2012 08:18 AM, Peter Maydell wrote:
On 24 May 2012 14:06, Anthony Liguori<anth...@codemonkey.ws> wrote:
There are very few places where errors can be handled gracefully. They are
exceptions and can be treated as such.
I think it's far better for the QOM infrastructure to assert when it detects
something bad because 99% of the users of QOM do not even attempt to handle
errors gracefully
Last time I was trying to argue for keeping the "create, set properties,
realize" interface for devices/objects as simple as possible you wanted
it to have an error-return interface rather than asserting...
You need to be more specific than that I'm afraid..
Regards,
Anthony Liguori
-- PMM