From: John Max Skaller <skaller@maxtal.com.au>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: Markus Mottl <markus@mail4.ai.univie.ac.at>, OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] illegal permutation of structure fields?
Date: Thu, 26 Jul 2001 08:27:38 +1000 [thread overview]
Message-ID: <3B5F47DA.BAB6E25B@maxtal.com.au> (raw)
In-Reply-To: <20010723172755.A5259@pauillac.inria.fr>
Xavier Leroy wrote:
>
> > I've just found out to my surprise that the following does not work:
[]
> > This yields the following error:
> > Illegal permutation of structure fields
> >
> > Why is this illegal? Wouldn't it be very straightforward to normalize
> > the signatures (e.g. sort elements by name) before matching them?
>
> That's more or less what old versions of OCaml did, but it's
> incorrect. The reason is that a module signature determine the layout
> of the corresponding structure: if
[]
I don't understand this explanation. Markus suggested
_normalising_ the order by name. That is, the 'actual'
storage order of elements is determined by their names,
not by the order of writing.
--
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
New generation programming language Felix http://felix.sourceforge.net
Literate Programming tool Interscript
http://Interscript.sourceforge.net
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
prev parent reply other threads:[~2001-07-25 22:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-23 13:04 Markus Mottl
2001-07-23 15:27 ` Xavier Leroy
2001-07-23 16:07 ` Andreas Rossberg
2001-07-26 7:14 ` Xavier Leroy
2001-07-26 8:42 ` Markus Mottl
2001-07-23 16:36 ` Markus Mottl
2001-07-25 22:27 ` John Max Skaller [this message]
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=3B5F47DA.BAB6E25B@maxtal.com.au \
--to=skaller@maxtal.com.au \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=markus@mail4.ai.univie.ac.at \
/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