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

Re: [Libguestfs] [PATCH 1/4] generator: 'interface' is a reserved word in Java.



On Fri, Feb 12, 2010 at 03:46:42PM +0000, Matthew Booth wrote:
> On 12/02/10 12:44, Richard W.M. Jones wrote:
> > Subject: [PATCH 1/4] generator: 'interface' is a reserved word in Java.
> > 
> > ---
> >  src/generator.ml |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/src/generator.ml b/src/generator.ml
> > index 2cede47..7db58eb 100755
> > --- a/src/generator.ml
> > +++ b/src/generator.ml
> > @@ -4787,6 +4787,7 @@ let check_functions () =
> >            "for"; "forall"; "foreign"; "fun"; "function"; "functor"; "goto";
> >            "hiding"; "if"; "import"; "in"; "include"; "infix"; "infixl";
> >            "infixr"; "inherit"; "initializer"; "inline"; "instance"; "int";
> > +          "interface";
> >            "land"; "lazy"; "let"; "long"; "lor"; "lsl"; "lsr"; "lxor";
> >            "match"; "mdo"; "method"; "mod"; "module"; "mutable"; "new";
> >            "newtype"; "object"; "of"; "open"; "or"; "private"; "qualified";
> 
> Not related to above, but ACK ;)

It's coz I first tried to call the new parameter "interface",
but that caused the Java bindings to barf.  I ended up calling
it "iface".

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


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