caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Union of polymorphic variants...
@ 2007-12-04 12:38 Stephane Glondu
  2007-12-04 13:57 ` [Caml-list] " Jacques Garrigue
  0 siblings, 1 reply; 5+ messages in thread
From: Stephane Glondu @ 2007-12-04 12:38 UTC (permalink / raw)
  To: caml-list

Hi,

Why isn't possible to do the following?

type b = [`A of [`B of bool]]
type c = [`A of [`C of char]]
type a = [b|c]

I expect the last declaration to be equivalent to:

type a = [`A of [`B of bool | `C of char]]


Thanks,

-- 
Stephane Glondu


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

end of thread, other threads:[~2007-12-05 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-04 12:38 Union of polymorphic variants Stephane Glondu
2007-12-04 13:57 ` [Caml-list] " Jacques Garrigue
2007-12-04 14:33   ` Stephane Glondu
2007-12-05  2:17     ` Jacques GARRIGUE
2007-12-05 15:59       ` Stephane Glondu

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