Updated Perl API for DBus

Andy Wingo wingo at pobox.com
Wed Nov 24 08:47:58 PST 2004


Hi Daniel,

On Tue, 2004-11-23 at 23:54 +0000, Daniel P. Berrange wrote:
> [...] I've created a set of high level APIs (equiv of Python dbus.py)

I've been using the python stuff as a model too, in the guile bindings.
It's tough to ignore quality ;)

> The place where we divert from Python is with data typing. Since Perl
> is a very loosely typed language, fields are added to messages as strings,
> arrays or dictionaries.

Although explicit, it ignores any hinting that might exist with
SvIOKp/SvNOKp/SvPOKp. I've never hacked perl in C, so I don't know how
indicative these macros are of underlying types. Or what "underlying
type" really means in perl.

On a deeper level, one should be able to query the signature of an
interface -- this would make things a bit more clear. Tricky. Given
Havoc's successful implementation of type-closure in compound types, and
the implicit encoding of type in data (messages), maybe he has a bright
idea ;-)

Cheers,
-- 
Andy Wingo <wingo at pobox.com>
http://ambient.2y.net/wingo/


More information about the dbus mailing list