Problems with empty Arrays and Dicts in untyped languages

Joe Shaw joeshaw at
Thu Jul 28 05:07:48 EST 2005


On Wed, 2005-07-27 at 14:49 -0400, Colin Walters wrote:
> That said, I don't think the idea of a new DBUS_TYPE_ARRAY_EMPTY or
> something is crazy inherently, but we'd need to think seriously about
> the implications it has on the higher level bindings.  
> I'm not sure about .NET though.  Would DBUS_TYPE_EMPTY_ARRAY be a
> problem for the Mono bindings?

If I understand correctly, in the event of getting DBUS_TYPE_EMPTY_ARRAY
we could reflect to see what array type the caller was expecting and
then return an empty array of that type.  But that's pretty gross.


More information about the dbus mailing list