From: Anton Moscal <msk@post.tepkom.ru>
To: caml <caml-list@inria.fr>
Subject: [Caml-list] format types
Date: Tue, 25 Sep 2001 12:59:43 +0400 [thread overview]
Message-ID: <01092512594301.08201@kouzdra.glokaya> (raw)
In-Reply-To: <3BAFC45D.9EAB97D9@gmvnetwork.com>
Hello!
why
let _ = List.map printf (["abc\n"; "def\n"]:('a,'b,'c) format list)
work properly, but:
let _ = List.map printf ["abc\n"; "def\n"]
doesn't compiled with message
This expression has type ('a, out_channel, unit) format -> 'a
but is here used with type string -> 'b
I know, O'Caml format type is a hack, but I can't undertand difference
between thees two expressions for the type inference algorighm.
Regards,
Anton Moscal
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-09-26 20:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-24 23:40 [Caml-list] Initial port of ocaml for mingw (long) art
2001-09-25 8:59 ` Anton Moscal [this message]
2001-09-27 0:35 ` [Caml-list] format types Jacques Garrigue
2001-10-17 19:07 ` [Caml-list] Ocaml 3.03 alpha MinGW port Dmitry Bely
2001-10-22 1:46 ` Masakazu Fukuzawa
2001-10-22 14:56 ` Dmitry Bely
2001-10-22 16:18 ` Masakazu Fukuzawa
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=01092512594301.08201@kouzdra.glokaya \
--to=msk@post.tepkom.ru \
--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).