WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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