Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Type inference and marshalling
@ 2011-07-05 13:59 malc
  2011-07-05 14:18 ` Wojciech Meyer
  2011-07-05 23:24 ` Jacques Garrigue
  0 siblings, 2 replies; 7+ messages in thread
From: malc @ 2011-07-05 13:59 UTC (permalink / raw)
  To: caml-list

Perhaps someone could explain why following behaves the way it does:

~$ ocaml
        Objective Caml version 3.11.2

# let f ic = let i = input_value ic in let j = i + 1 in LargeFile.seek_in ic i;;
Warning Y: unused variable j.
val f : in_channel -> unit = <fun>
# let f ic = let i = input_value ic in let j = i + 1 in LargeFile.seek_in ic j;;
Error: This expression has type int but an expression was expected of type
         int64

-- 
mailto:av1474@comtv.ru

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-06  8:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 13:59 [Caml-list] Type inference and marshalling malc
2011-07-05 14:18 ` Wojciech Meyer
2011-07-05 14:54   ` Mathias Kende
2011-07-05 23:24 ` Jacques Garrigue
2011-07-06  5:11   ` malc
2011-07-06  7:44     ` Jacques Garrigue
2011-07-06  8:31       ` malc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox