MAYBE types?

Alex Merry kde at randomguy3.me.uk
Mon Dec 13 06:31:09 PST 2010


On Monday 13 December 2010 12:15:07 Will Thompson wrote:
> Hi Alex,
> 
> On 10/12/10 20:14, Alex Merry wrote:
> > I was wondering if there was an elegant situation someone has already
> > thought of for the following situation.
> 
> Christian Dywan has an implementation of a 'Maybe' type on
> <https://bugs.freedesktop.org/show_bug.cgi?id=27857>. It's awaiting review.

Is there anything I can do to help get this put in?

In the short term, I'm going to annotate my structure with a boolean: 
(b(oss)).  This seems to me to be the best approach, as the "o" component is 
used as the identifying element of the structure, and (from my reading of the 
spec) this can't be empty.

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20101213/f9997ab2/attachment.pgp>


More information about the dbus mailing list