From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2IElUhP019430 for ; Fri, 18 Mar 2011 15:47:30 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai4CAI8Mg03RVaE2kGdsb2JhbAClZAgVAQEBCQkNBxQEIadgikKCHoUCL4hbAQEDBYVeBIxjg090hDs6 X-IronPort-AV: E=Sophos;i="4.63,205,1299452400"; d="scan'208";a="103037589" Received: from mail-fx0-f54.google.com ([209.85.161.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 18 Mar 2011 15:47:26 +0100 Received: by fxm11 with SMTP id 11so5855033fxm.27 for ; Fri, 18 Mar 2011 07:47:26 -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=2CuShqU4+wRcrfmBLhyt5gbQ37HJUJyWha1vvd4TL4Y=; b=fCcx5ppYqkrlvrDBqEAwLlbSITvTaO3mtirN2AJeUFAHj6zN94HawBDuYOvb7iDRiG lgWaqFNf964vbddeDQO/f3y1zw4PkYtLcRLjHetBxKbnCf+wGuL/DgSIvIcCvrJsun3O qNZPggD5BNla623er4d9TLlOg0zdRHowKkhcw= 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=Vzr+mL1P9k2Yu6wzDjnHxFv98dFX9A5s9G+RtDdmbeTgFHMjSqk8Pig16WIy0s4LRt OklKP/mIZ2CEEBbxFU+zor4Ztz6U/VB2ANiHWPR6Ow5aoN1djynxeUDfDJpcBuxo4EAN om4lx4AkLykBGitR5gS/W42Ovy33DxNSocDCI= Received: by 10.223.55.201 with SMTP id v9mr1357488fag.76.1300459555094; Fri, 18 Mar 2011 07:45:55 -0700 (PDT) Received: from [10.0.1.36] ([87.54.60.37]) by mx.google.com with ESMTPS id c21sm1154653fac.46.2011.03.18.07.45.53 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 07:45:54 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Joel Reymont In-Reply-To: <5290B182-B882-4C47-B6EE-8EABDBB7A8A9@gmail.com> Date: Fri, 18 Mar 2011 15:45:52 +0100 Cc: caml-list@inria.fr Message-Id: <4A46B314-85D4-467A-AC47-D73510F06338@gmail.com> References: <5290B182-B882-4C47-B6EE-8EABDBB7A8A9@gmail.com> To: Joel Reymont X-Mailer: Apple Mail (2.1082) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p2IElUhP019430 Subject: [Caml-list] Re: errors compiling thrift-generated code Changing the copy method to this method copy = let _new = (Oo.copy self:> #document) in _new or this: method copy : document = let _new = Oo.copy self in _new gives the error at the very bottom of the gist [1], i.e. "Self type cannot escape its class" Thanks, Joel [1] https://gist.github.com/876154 -------------------------------------------------------------------------- - for hire: mac osx device driver ninja, kernel extensions and usb drivers ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------