From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: ermine@ermine.pp.ru
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] class and printf
Date: Mon, 30 Oct 2006 22:21:36 +0900 (JST) [thread overview]
Message-ID: <20061030.222136.93016075.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <20061030124223.GA46814@ermine.home>
From: Anastasia Gornostaeva <ermine@ermine.pp.ru>
> What I need to drink to compile it?
>
> class foo ch =
> object
> method myprintf = Printf.fprintf ch
> end
>
> The compiler says
> The method myprintf has type ('a, out_channel, unit) format -> 'a where 'a
> is unbound
Since I assume that you want to be able to use differently typed
formats with the same object,
class foo ch = object
method myprintf : 'a. ('a, out_channel, unit) format -> 'a =
Printf.fprintf ch
end
Jacques Garrigue
prev parent reply other threads:[~2006-10-30 13:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-30 12:42 Anastasia Gornostaeva
2006-10-30 12:47 ` [Caml-list] " Nicolas Pouillard
2006-10-30 13:28 ` Virgile Prevosto
2006-10-30 12:49 ` Jon Harrop
2006-10-30 13:21 ` Jacques Garrigue [this message]
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=20061030.222136.93016075.garrigue@math.nagoya-u.ac.jp \
--to=garrigue@math.nagoya-u.ac.jp \
--cc=caml-list@yquem.inria.fr \
--cc=ermine@ermine.pp.ru \
/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