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

Re: [Xen-devel] [PATCH v3-RESEND 03/28] libxl: ocaml: avoid reserved words in type and field names.



On Mon, 2013-10-28 at 15:24 +0000, Ian Jackson wrote:
> Rob Hoes writes ("RE: [PATCH v3-RESEND 03/28] libxl: ocaml: avoid reserved 
> words in type and field names."):
> > > There aren't all that many ocaml keywords, I suppose? I expect
> > > many of them are unlikely field names. If we don't want to
> > > enumerate them up front (which I would accept, it's a bit tedious)
> > > I'd be perfectly happy to fault things in as the libxl IDL gains
> > > new inconveniently named fields, it'll break the build so we
> > > should notice pretty quickly!
> > 
> > I'd be very happy with that, if it is acceptable to you and IanJ!
> 
> That would be fine by me.  I would marginally prefer to simply dump a
> list of the ocaml keywords into the ocaml idl generator.

http://caml.inria.fr/pub/docs/manual-ocaml-4.01/manual044.html seems to
have a list, I suppose it is reasonably static across ocaml updates?
It's not too insane to include it all now. Using most of them in our ABI
would be a bug in our ABI IMHO and/or are already C reserved words (e.g.
"else", "false" etc).

Ian.



_______________________________________________
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®.