Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Dave Berry <daveb@tardis.ed.ac.uk>
To: "Jocelyn Sérot" <jserot@lasmea.univ-bpclermont.fr>,
	"Dave Berry" <daveb@tardis.ed.ac.uk>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How to read three integers from a text-file... ?
Date: Fri, 03 May 2002 22:58:22 +0100	[thread overview]
Message-ID: <4.1.20020503182817.009ca730@127.0.0.1> (raw)
In-Reply-To: <6ECF4649-5C48-11D6-AC27-0003934491C2@lasmea.univ-bpclermon t.fr>

At 16:42 30/04/2002, Jocelyn Sérot wrote:
>Sorry to jump in the middle of this discussion, but your last remark on 
>"extensible n-tuples" drew my attention (i use to need this kind of thing
in a 
>completely different context). Can you provide references on these
>extensions of ML type systems ?

Hi Jocelyn,

I give some references below, but I have to add several caveats to my
remarks.  I don't have all these papers, so I can't check exactly what they
cover.  I believe they include similar operations on labelled records, and
these can be mapped to tuples by the SML technique of defining tuples as
records with numeric labels.  Whether that's the best approach is another
question; possibly it would be simpler to represent them as nested pairs,
as Alain Frisch suggested.  Finally, I'm not sure whether all these papers
gave type systems that were extensions of ML.

Anyway, here are the papers I had in mind.  Didier's work went on to become
Objective ML (which is why I wondered whether this operation was already
available in the system underlying OCaml).  Some of the other authors are
active on this list, and might be able to tell you more accurately whether
their work is relevant.

Dave.

Luca Cardelli and John C. Mitchell, "Operations on records", DEC SRC,
August 1989.

Mitchell Wand, "Type inference for record concatenation and multiple
inheritance", LICS 1989.

Didier Remy, "Typechecking records in a natural extension of ML", POPL 1989.

Robert Harper and Benjamin Pierce, "A record calculus based on symmetric
concatenation", POPL 1991.  [N.b. Symmetric concatenation is more complex
then simple record extension]

Atsushi Ohori, "A compilation method for ML-style polymorphic record
calculi", POPL 1992.

Didier Remy, "Typing record concatenation for free", POPL 1992.







-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2002-05-03 22:21 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 10:41 Jacek Chrzaszcz
2002-04-24 10:44 ` Stefano Lanzavecchia
2002-04-24 18:46   ` Tomasz Zielonka
2002-04-24 11:16 ` Jacques Garrigue
2002-04-24 13:40   ` Tomasz Zielonka
2002-04-25  5:30   ` pervasives (was: Re: [Caml-list] How to read three integers from a text-file... ?) Chris Hecker
2002-04-25  6:33     ` Tomasz Zielonka
2002-04-25 17:54       ` Chris Hecker
2002-04-27  4:43         ` John Max Skaller
2002-04-27 16:02           ` [Caml-list] input_line (Re: pervasives) Lauri Alanko
2002-04-30 12:07             ` [Caml-list] input_line Xavier Leroy
2002-05-03  0:13               ` Lauri Alanko
2002-05-03 11:27                 ` Florian Hars
2002-04-24 21:23 ` [Caml-list] How to read three integers from a text-file... ? Tomasz Zielonka
2002-04-25  1:51   ` John Max Skaller
2002-04-25  8:55   ` Daniel de Rauglaudre
2002-04-25 11:19     ` Markus Mottl
2002-04-25 11:33       ` Jérôme Marant
2002-04-25 11:43         ` Markus Mottl
2002-04-25 17:56         ` Chris Hecker
2002-04-25 20:52           ` John Prevost
2002-04-25 23:32           ` Jacques Garrigue
2002-04-26  7:25             ` Jérôme Marant
2002-04-26 12:16           ` Jacques Garrigue
2002-05-02  8:48             ` Jacques Garrigue
2002-04-26  1:39         ` Daniel de Rauglaudre
2002-04-29  6:44   ` Francois Pottier
2002-04-30 11:07     ` Dave Berry
2002-04-30 12:20       ` Francois Pottier
2002-04-30 13:54         ` T. Kurt Bond
2002-05-03 22:12         ` Dave Berry
2002-04-30 14:42       ` Jocelyn Sérot
2002-05-02  7:34         ` [Caml-list] Extensible tuple types Francois Pottier
2002-05-02  9:42           ` Alain Frisch
2002-05-02 11:03             ` Francois Pottier
     [not found]       ` <6ECF4649-5C48-11D6-AC27-0003934491C2@lasmea.univ-bpclermon t.fr>
2002-05-03 21:58         ` Dave Berry [this message]
2002-05-06  0:53           ` [Caml-list] How to read three integers from a text-file... ? Eray Ozkural
2002-05-06  6:40           ` Florian Hars
2002-04-30 23:30     ` [Caml-list] Danvy "Functional Unparsing" style output in OCaml [was: How to read three integers from a text-file... ?] T. Kurt Bond
2002-05-13 14:11       ` [Caml-list] RE: Danvy "Functional Unparsing" style output in OCaml T. Kurt Bond
2002-05-13 19:59         ` [Caml-list] "Functional Unparsing" benchmark results links fixed [Was: Danvy "Functional Unparsing" style output in OCaml] T. Kurt Bond

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=4.1.20020503182817.009ca730@127.0.0.1 \
    --to=daveb@tardis.ed.ac.uk \
    --cc=caml-list@inria.fr \
    --cc=jserot@lasmea.univ-bpclermont.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