[Telepathy] Proposed spec format update: Dict<A,B>
simon.mcvittie at collabora.co.uk
Mon Oct 15 02:22:55 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
On Sat, 13 Oct 2007 at 15:59:13 +0100, Alp Toker wrote:
> This is inspired by the format we already use to describe arrays and
> based on the syntax for templates in C++ and generics in C#. It is
> surprisingly easy to parse recursively in XSL.
In the type-generating code in telepathy-glib I just name the types of
dict we use, rather than using templates or generics - the point of my
type-generating code was to cache GTypes so we don't need to ask
dbus-glib to parse varargs over and over again, so using a finite set of
types actually aligns better with this goal.
It turns out we need surprisingly few flavours of dict, so I think this
approach is viable. I'll prepare spec patches when I get a chance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
-----END PGP SIGNATURE-----
More information about the Telepathy