DBus Extensions

Thiago Macieira thiago at kde.org
Mon Aug 13 13:07:12 PDT 2007


Simon McVittie wrote:
>At first glance it looks easy to support Maybe in the current
>dbus-python API, but in fact, to do so you'd either have to use some
>awkward wrapper class, or use an object that isn't None for the
>"NULL-like" case (violating least astonishment), or (again) drop support
>for distinguishing between different levels of variant nesting.

I'm with you here.

Since most languages need a bool to represent such a nullable type, plus 
the object itself if it exists, I don't see why D-Bus can't adopt the 
same solution.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070813/c926e4ca/attachment.pgp 


More information about the dbus mailing list