caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] The value restriction
@ 2011-12-16  9:18 Andrej Bauer
  2011-12-16  9:39 ` Gabriel Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Bauer @ 2011-12-16  9:18 UTC (permalink / raw)
  To: caml-list

Can someone explain this behavior?

# ([], (fun x -> x) (fun y -> y)) ;;
- : 'a list * ('_b -> '_b) = ([], <fun>)

# ((fun a -> a), (fun x -> x) (fun y -> y)) ;;
- : ('_a -> '_a) * ('_b -> '_b) = (<fun>, <fun>)

Why does the second component influence the first one (in a non-obvious way)?

With kind regards,

Andrej

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

end of thread, other threads:[~2011-12-16 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16  9:18 [Caml-list] The value restriction Andrej Bauer
2011-12-16  9:39 ` Gabriel Scherer
2011-12-16 10:16   ` Didier Remy

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