[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: [PATCH] similar change to dbus_connection_unregister_object_path
From: Havoc Pennington <hp () redhat ! com>
Date: 2007-10-10 18:18:05
Message-ID: 470D175D.5000307 () redhat ! com
[Download RAW message or body]
Hi,
Simon McVittie wrote:
>> I'm struggling to think of an example of non-broken code that
>> unregisters without knowing whether it's registered.
>
> Language bindings don't necessarily want to know what paths they've
> registered - they want (their) user code to be responsible for knowing that.
> However, if we used that strategy at the moment, failure looks like a D-Bus
> bug, rather than a user code bug (high-level language users expect *their*
> bugs to manifest as exceptions or whatever).
>
That's still not an argument for silently failing though - it's an
argument for returning a DBusError.
Havoc
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic