caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Joel Reymont <joelr1@gmail.com>
To: Niki Yoshiuchi <aplusbi@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] errors compiling thrift-generated code
Date: Fri, 18 Mar 2011 15:52:26 +0100	[thread overview]
Message-ID: <E53C23FF-5AA6-41BA-B0FE-55323FBBEE98@gmail.com> (raw)
In-Reply-To: <AANLkTi=UFFPf7KG77GLh4MtedXZR-0mqdr-SF3xJ_LqQ@mail.gmail.com>

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
---------------------+------------+---------------------------------------




  reply	other threads:[~2011-03-18 14:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 14:29 Joel Reymont
2011-03-18 14:45 ` [Caml-list] " Joel Reymont
2011-03-18 14:47 ` [Caml-list] " Niki Yoshiuchi
2011-03-18 14:52   ` Joel Reymont [this message]
     [not found] ` <AANLkTikj278tWdB284C7E7ZQ4-PaynNCk8eCzf=QXn-0@mail.gmail.com>
2011-03-18 14:50   ` Joel Reymont
2011-03-18 14:59 ` Guillaume Yziquel
2011-03-18 15:06   ` Joel Reymont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E53C23FF-5AA6-41BA-B0FE-55323FBBEE98@gmail.com \
    --to=joelr1@gmail.com \
    --cc=aplusbi@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).