From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: caml list <caml-list@inria.fr>
Subject: [Caml-list] Stability of order between polymorphic variants
Date: Thu, 5 Sep 2013 01:17:23 +0100 [thread overview]
Message-ID: <EB3B4FB66B1C49E89F3B56664559EFA1@erratique.ch> (raw)
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
next reply other threads:[~2013-09-05 0:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 0:17 Daniel Bünzli [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EB3B4FB66B1C49E89F3B56664559EFA1@erratique.ch \
--to=daniel.buenzli@erratique.ch \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox