From: Jacques Garrigue <jacques.garrigue@gmail.com>
To: Ivan <ivg@ieee.org>, Garrigue Jacques <garrigue@math.nagoya-u.ac.jp>
Cc: "Mailing, OCaML" <caml-list@inria.fr>
Subject: RE: [Caml-list] type inference with classes
Date: Sat, 4 Aug 2012 01:14:44 +0200 [thread overview]
Message-ID: <7462100669208928703@unknownmsgid> (raw)
From: Ivan <ivg@ieee.org>
>>The fact is that, at least in lablgtk-2.14.2 (the current version), the
>> type is
>>
>> expand_row : ?all:bool -> Gtk.tree_path -> unit
>The first thing I've tried was specifying explicitly argument ~all. But
>compiler refused to accept this too, with exactly the same error message...
For the ~all argument to be properly processed, you first need the
type of the method to be known.
The best solution is to put a type annotation on v.
The next solution is to pass an explicit optional argument:
v#expand_row ?all:None x
I don't like it much because parameter order matters.
Jacques
next reply other threads:[~2012-08-03 23:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 23:14 Jacques Garrigue [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-03 4:23 Ivan
2012-08-03 4:50 ` Alain Frisch
2012-08-03 5:15 ` Ivan
2012-08-03 5:32 ` Jacques Garrigue
2012-08-03 6:09 ` Ivan
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=7462100669208928703@unknownmsgid \
--to=jacques.garrigue@gmail.com \
--cc=caml-list@inria.fr \
--cc=garrigue@math.nagoya-u.ac.jp \
--cc=ivg@ieee.org \
/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).