caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Modules, type de modules et type polymorphes.
@ 2000-09-19 12:29 Sven LUTHER
  2000-09-19 18:16 ` Markus Mottl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sven LUTHER @ 2000-09-19 12:29 UTC (permalink / raw)
  To: caml-list

Bonjour, ...
Hello, ...

quel est le probleme de ceci ?
What is the problem with the following ?

bash-2.04$ ocaml
        Objective Caml version 3.00

# module type T_A = sig
    val string_of_a : 'a -> string
  end;;
module type T_A = sig val string_of_a : 'a -> string end
# module A : T_A = struct 
    let string_of_a = string_of_int
  end;;
Signature mismatch:
Modules do not match:
  sig val string_of_a : int -> string end
is not included in
  T_A
Values do not match:
  val string_of_a : int -> string
is not included in
  val string_of_a : 'a -> string

Amicalement,
Friendly,

Sven LUTHER



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

end of thread, other threads:[~2000-09-20 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-19 12:29 Modules, type de modules et type polymorphes Sven LUTHER
2000-09-19 18:16 ` Markus Mottl
2000-09-20  7:31 ` Jean-Christophe Filliatre
2000-09-20 13:45 ` Sylvain BOULM'E

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).