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

Re: [Xen-devel] [PATCH 06/28] libxl: ocaml: support for KeyedUnion in the bindings generator.



Minor quibble:

On 25/03/13 14:45, Rob Hoes wrote:
[snip]
So given IDL:

  foo = Enumeration("foo",
         (0, "BAR"),
         (1, "BAZ"),
  s = Struct("s", [
         ("u", KeyedUnion(none, foo, "blargle", [
                 ("bar", Struct(...xxx...)),
                 ("baz", Struct(...yyy...)),
         ])),
  ])
[snip]
and map this to ocaml

  type foo = BAR | BAZ;

  module s = Struct

I presume you mean "module S = struct"?

Cheers,
Dave

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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