Problems with empty Arrays and Dicts in untyped languages

Joe Shaw joeshaw at
Thu Jul 28 05:27:32 EST 2005


On Wed, 2005-07-27 at 15:15 -0400, John (J5) Palmieri wrote:
> No the point is the other way around.  When sending an empty array some
> languages have no way of knowing what array type to send without
> Introspection.  DBUS_TYPE_EMPTY_ARRAY would free these languages from
> figuring it out by allowing an empty array to map to an array of any
> type.
> I'm not quite sure why this would be a problem in .Net or Java.  If an
> array of anytype has no elements just marshal it to

Oh, yeah, then it's easy.


More information about the dbus mailing list