From: Ian Campbell Subject: Re: [PATCH v3-RESEND 03/28] libxl: ocaml: avoid reserved words in type and field names. Date: Thu, 31 Oct 2013 13:43:41 +0000 Message-ID: <1383227021.25018.56.camel@dagon.hellion.org.uk> References: <1382362365-6645-1-git-send-email-rob.hoes@citrix.com> <1382362365-6645-4-git-send-email-rob.hoes@citrix.com> <1382652256.22417.131.camel@hastur.hellion.org.uk> <8ED3B5B4-88F2-4D2A-9029-199A7C963EEB@citrix.com> <1382684169.22417.142.camel@hastur.hellion.org.uk> <360717C0B01E6345BCBE64B758E22C2D142C2F@AMSPEX01CL03.citrite.net> <21102.33221.916652.925803@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21102.33221.916652.925803@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Rob Hoes , "" List-Id: xen-devel@lists.xenproject.org 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.