From: Joel Reymont <joelr1@gmail.com>
To: Joel Reymont <joelr1@gmail.com>
Cc: caml-list@inria.fr
Subject: [Caml-list] Re: errors compiling thrift-generated code
Date: Fri, 18 Mar 2011 15:45:52 +0100 [thread overview]
Message-ID: <4A46B314-85D4-467A-AC47-D73510F06338@gmail.com> (raw)
In-Reply-To: <5290B182-B882-4C47-B6EE-8EABDBB7A8A9@gmail.com>
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
---------------------+------------+---------------------------------------
next prev parent reply other threads:[~2011-03-18 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 14:29 [Caml-list] " Joel Reymont
2011-03-18 14:45 ` Joel Reymont [this message]
2011-03-18 14:47 ` Niki Yoshiuchi
2011-03-18 14:52 ` Joel Reymont
[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=4A46B314-85D4-467A-AC47-D73510F06338@gmail.com \
--to=joelr1@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