[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1 of 4] xl: idl: Abolish keyed union types



Gianni Tedesco writes ("[Xen-devel] [PATCH 1 of 4] xl: idl: Abolish keyed union 
types"):
> xl: idl: Abolish keyed union types
> 
> Since the IDL file has become useful for generating language
> bindings it has become apparent that the KeyedUnion type has no
> straightforward translation to scripting languages which have no
> notion of unions.

Uhh?  Most scripting languages' aggregate types are practically
nothing _but_ unions!

The correct translation of a keyed union would probably be an
aggregate (eg, in Python, a dictionary) containing an entry for the
key and entries for whatever version of the union it involved.

> Turns out this is only used in domain_build_info which is hardly a memory
> criticial structure.

However I don't have a strong opinion about the desirability of using
a tagged union for this particular structure.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.