Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* polymorphic variant oddity
@ 2000-10-07 11:33 Julian Assange
  2000-10-08 16:00 ` Pierre Weis
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julian Assange @ 2000-10-07 11:33 UTC (permalink / raw)
  To: caml-list; +Cc: proff



let `F x = x;;   
Unbound value x
# let `F x = 1;;
This expression has type int but is here used with type [< `F of 'a | ..]
# let `F x = `F 1;;
val x : int = 1
# `F 4;;
- : [> `F of int] = `F 4

What exactly is the meaning this?



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

end of thread, other threads:[~2000-10-08 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-07 11:33 polymorphic variant oddity Julian Assange
2000-10-08 16:00 ` Pierre Weis
2000-10-08 17:22 ` Markus Mottl
2000-10-08 20:09 ` John Prevost

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