From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2IEqdPn020252 for ; Fri, 18 Mar 2011 15:52:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai4CAMcNg03RVdY2kGdsb2JhbAClZAgVAQEBCQkNBxQEIYhNnyCKQoIehQIviFsBAQMFhV4EjGODT3SEOzo X-IronPort-AV: E=Sophos;i="4.63,205,1299452400"; d="scan'208";a="94407583" Received: from mail-bw0-f54.google.com ([209.85.214.54]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 18 Mar 2011 15:52:34 +0100 Received: by bwz12 with SMTP id 12so5130967bwz.27 for ; Fri, 18 Mar 2011 07:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=rhMiIALDM5H8tCBwTl26CaSdko0uKitWVtNcwtRDEXA=; b=PuvYrlK8Td9vmuW8B/+TwJbx3FPRbBn1X97CwHnuoY97XA8qYWI0y5/mnQZMw7vBs+ Y4wyJigJTUkSnwWxPKpg2OH3iqANZ0nH/MlvBkvQ2P9sjsc/O+/JJHc+j7VsyfQfWBiN NvjTrj2byrmcMSff1b+WDz6izqwjBfHR9ynRw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=GSQPdZq2RwTZYSSLwNVWL+I1xIDHGslzrdcroD2rcC0mjdCyN01SYsy2QYYo1MbHbl pm5EVG+TXFgzz8dk2nk91O/8qzGbtffPwBM91556CNJklS1oO03X+HwY7ja8M9s40FuI LKRJkFFHrU/pGta/+GQ+kgPCCBFZPltL6fIgQ= Received: by 10.204.29.18 with SMTP id o18mr1060910bkc.12.1300459953524; Fri, 18 Mar 2011 07:52:33 -0700 (PDT) Received: from [10.0.1.36] ([87.54.60.37]) by mx.google.com with ESMTPS id b7sm2199117bkb.18.2011.03.18.07.52.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 07:52:32 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Joel Reymont In-Reply-To: Date: Fri, 18 Mar 2011 15:52:26 +0100 Cc: caml-list@inria.fr Content-Transfer-Encoding: 7bit Message-Id: References: <5290B182-B882-4C47-B6EE-8EABDBB7A8A9@gmail.com> To: Niki Yoshiuchi X-Mailer: Apple Mail (2.1082) Subject: Re: [Caml-list] errors compiling thrift-generated code Niki, On Mar 18, 2011, at 3:47 PM, Niki Yoshiuchi wrote: > The easiest way to fix your problem is to change the interface so that: > > method copy : document > > becomes: > > method copy : 'a It appears that I also need object ('a) in the mli, e.g. open Thrift class document : object ('a) ... method copy : 'a method write : Protocol.t -> unit end Thanks a lot for your help! -------------------------------------------------------------------------- - for hire: mac osx device driver ninja, kernel extensions and usb drivers ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------