Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Re : Weak types ?
@ 1998-02-06 18:49 Moreau
  1998-02-09 13:25 ` Simon Helsen
  1998-02-09 14:21 ` Pascal Cuoq
  0 siblings, 2 replies; 3+ messages in thread
From: Moreau @ 1998-02-06 18:49 UTC (permalink / raw)
  To: Caml list

Simon Helsen had given an explication about weak types and the reason their
existence, but there is still something i can't understand : if we do :

let toto y =
 let id x = x in
id id y ;;

this will be of type 'a ->'a
What is the difference with this :

let toto = let id x = x in id id ;;

I thought caml will understand that there is no difference !

why does caml make this difference ?








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

end of thread, other threads:[~1998-02-09 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-06 18:49 Re : Weak types ? Moreau
1998-02-09 13:25 ` Simon Helsen
1998-02-09 14:21 ` Pascal Cuoq

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