caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Stability of order between polymorphic variants
@ 2013-09-05  0:17 Daniel Bünzli
  2013-09-05  2:06 ` Anthony Tavener
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Daniel Bünzli @ 2013-09-05  0:17 UTC (permalink / raw)
  To: caml list

Hello,  

I have this type 

  type weight = [ `W100 | `W200 | `W300 | `W400 | `W500 | `W600 | `W700 | `W800 | `W900 ]

In the current compiler it has the property that `Wx00 < `Wy00 if x < y. 

The question is, is the order between polymorphic variants an invariant provided by the compiler or is it subject to change ? 

Best,

Daniel



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

end of thread, other threads:[~2013-09-05 14:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05  0:17 [Caml-list] Stability of order between polymorphic variants Daniel Bünzli
2013-09-05  2:06 ` Anthony Tavener
2013-09-05  2:11   ` Anthony Tavener
2013-09-05  2:18     ` Francois Berenger
2013-09-05  2:31       ` Anthony Tavener
2013-09-05  7:47         ` Stéphane Glondu
2013-09-05  8:24 ` Jacques Garrigue
2013-09-05  8:39   ` Mark Shinwell
2013-09-05  9:26 ` Jeremy Yallop
2013-09-05 14:46   ` Goswin von Brederlow

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